From 7e9f70d0ca62093cbc5f80363ed4fd835c51d07b Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 19 Apr 2012 14:08:05 +0400 Subject: [PATCH] neutrino.cpp: move mount hack before CFSMounter::automount --- src/neutrino.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/neutrino.cpp b/src/neutrino.cpp index 7ed62f39d..582f4d9e1 100644 --- a/src/neutrino.cpp +++ b/src/neutrino.cpp @@ -1838,6 +1838,13 @@ TIMER_START(); g_CamHandler = new CCAMMenuHandler(); g_CamHandler->init(); +#ifndef ASSUME_MDEV + system("mkdir /media/sda1 2> /dev/null"); + system("mount /media/sda1 2> /dev/null"); + system("mkdir /media/sdb1 2> /dev/null"); + system("mount /media/sdb1 2> /dev/null"); +#endif + CFSMounter::automount(); g_PluginList = new CPlugins; g_PluginList->setPluginDir(PLUGINDIR); @@ -1876,13 +1883,6 @@ TIMER_START(); saveSetup(NEUTRINO_SETTINGS_FILE); } -#ifndef ASSUME_MDEV - system("mkdir /media/sda1 2> /dev/null"); - system("mount /media/sda1 2> /dev/null"); - system("mkdir /media/sdb1 2> /dev/null"); - system("mount /media/sdb1 2> /dev/null"); -#endif - CHDDDestExec * hdd = new CHDDDestExec(); hdd->exec(NULL, ""); delete hdd;