mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
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
------------------
Branch: ni/coolstream
Commit: 8284fe6e53
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-03-06 (Thu, 06 Mar 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user