mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
hdd_menu: create destination before mount
Origin commit data
------------------
Commit: 97cb0248f8
Author: vanhofen <vanhofen@gmx.de>
Date: 2013-11-22 (Fri, 22 Nov 2013)
Origin message was:
------------------
- hdd_menu: create destination before mount
This commit is contained in:
@@ -478,9 +478,11 @@ _remount:
|
||||
|
||||
switch(g_settings.hdd_fs) {
|
||||
case 0:
|
||||
safe_mkdir(dst);
|
||||
res = mount(src, dst, "ext3", 0, NULL);
|
||||
break;
|
||||
case 1:
|
||||
safe_mkdir(dst);
|
||||
res = mount(src, dst, "reiserfs", 0, NULL);
|
||||
break;
|
||||
default:
|
||||
@@ -602,9 +604,11 @@ printf("CHDDChkExec: key %s\n", key.c_str());
|
||||
ret1:
|
||||
switch(g_settings.hdd_fs) {
|
||||
case 0:
|
||||
safe_mkdir(dst);
|
||||
res = mount(src, dst, "ext3", 0, NULL);
|
||||
break;
|
||||
case 1:
|
||||
safe_mkdir(dst);
|
||||
res = mount(src, dst, "reiserfs", 0, NULL);
|
||||
break;
|
||||
default:
|
||||
|
Reference in New Issue
Block a user