From c8f0b1680832cec19f18c48a021cd8ccc78ff6b8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 4 Jun 2014 21:47:32 +0200 Subject: [PATCH] setting_helpers: ensure to create flagfile to reset var-partition Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/566ea033726f87f969f5cdfe319a08b314dc11b6 Author: vanhofen Date: 2014-06-04 (Wed, 04 Jun 2014) Origin message was: ------------------ - setting_helpers: ensure to create flagfile to reset var-partition --- src/system/setting_helpers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/setting_helpers.cpp b/src/system/setting_helpers.cpp index 7949249b9..97015f403 100644 --- a/src/system/setting_helpers.cpp +++ b/src/system/setting_helpers.cpp @@ -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);