setting_helpers: ensure to create flagfile to reset var-partition

Origin commit data
------------------
Branch: ni/coolstream
Commit: 566ea03372
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-06-04 (Wed, 04 Jun 2014)

Origin message was:
------------------
- setting_helpers: ensure to create flagfile to reset var-partition

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2014-06-04 21:47:32 +02:00
parent 18a4b5647d
commit 58529bd895

View File

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