mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-18 10:51:12 +02:00
gui/hdd_menu.cpp: add mount point mkdir, if mdev not used
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user