mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
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:
@@ -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