gui/hdd_menu.cpp: add mount point mkdir, if mdev not used

Origin commit data
------------------
Commit: ea9e950fd3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-29 (Tue, 29 Apr 2014)
This commit is contained in:
[CST] Focus
2014-04-29 13:44:43 +04:00
parent 5c96b9948d
commit 47630508ee

View File

@@ -282,7 +282,9 @@ bool CHDDMenuHandler::mount_dev(std::string name)
#ifdef ASSUME_MDEV
std::string cmd = std::string("ACTION=add") + " MDEV=" + name + " " + MDEV_MOUNT;
#else
std::string cmd = std::string("mount ") + "/dev/" + name + " " + MOUNT_BASE + name;
std::string dst = MOUNT_BASE + name;
safe_mkdir(dst.c_str());
std::string cmd = std::string("mount ") + "/dev/" + name + " " + dst;
#endif
printf("CHDDMenuHandler::mount_dev: mount cmd [%s]\n", cmd.c_str());
system(cmd.c_str());