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

to be processed by apollo init scripts to erase /var partition


Origin commit data
------------------
Commit: 8284fe6e53
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-03-06 (Thu, 06 Mar 2014)
This commit is contained in:
[CST] Focus
2014-03-06 14:18:55 +04:00
parent b06b434ccf
commit 7520021b75

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);