- setting_helpers: ensure to create flagfile to reset var-partition

This commit is contained in:
svenhoefer
2014-06-04 21:47:32 +02:00
parent 3124ed62cf
commit 566ea03372

View File

@@ -536,8 +536,6 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
CServiceManager::getInstance()->SatelliteList().clear(); CServiceManager::getInstance()->SatelliteList().clear();
CZapit::getInstance()->LoadSettings(); CZapit::getInstance()->LoadSettings();
CZapit::getInstance()->GetConfig(zapitCfg); CZapit::getInstance()->GetConfig(zapitCfg);
g_RCInput->postMsg( NeutrinoMessages::REBOOT, 0);
ret = menu_return::RETURN_EXIT_ALL;
#ifdef BOXMODEL_APOLLO #ifdef BOXMODEL_APOLLO
/* flag file to erase /var partition on factory reset, /* flag file to erase /var partition on factory reset,
will be done by init scripts */ will be done by init scripts */
@@ -545,6 +543,8 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
if (fp) if (fp)
fclose(fp); fclose(fp);
#endif #endif
g_RCInput->postMsg( NeutrinoMessages::REBOOT, 0);
ret = menu_return::RETURN_EXIT_ALL;
} }
if(delete_set) { if(delete_set) {
unlink(NEUTRINO_SETTINGS_FILE); unlink(NEUTRINO_SETTINGS_FILE);