system/setting_helpers.cpp: create /var_init/etc/.reset on factory reset,

to be processed by apollo init scripts to erase /var partition
This commit is contained in:
[CST] Focus
2014-03-06 14:18:55 +04:00
parent 793c3aab5a
commit 8284fe6e53

View File

@@ -538,6 +538,13 @@ int CDataResetNotifier::exec(CMenuTarget* /*parent*/, const std::string& actionK
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 */
FILE * fp = fopen("/var_init/etc/.reset", "w");
if (fp)
fclose(fp);
#endif
}
if(delete_set) {
unlink(NEUTRINO_SETTINGS_FILE);