Origin commit data
------------------
Commit: da22b07f7f
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-11-23 (Mon, 23 Nov 2020)

Origin message was:
------------------
- update: fix 76ca7970cc
This commit is contained in:
vanhofen
2020-11-23 21:43:34 +01:00
parent 1fcbab9cc3
commit 79c9bc2749

View File

@@ -708,13 +708,13 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey)
if(g_settings.hdmi_cec_standby){ if(g_settings.hdmi_cec_standby){
videoDecoder->SetCECMode((VIDEO_HDMI_CEC_MODE)0); videoDecoder->SetCECMode((VIDEO_HDMI_CEC_MODE)0);
} }
std::string startup_file("/boot/"); std::string startup_new("/boot/");
startup_file += g_info.hw_caps->startup_file; startup_new += g_info.hw_caps->startup_file;
std::string startup_new = startup_file + "_" + to_string(selected); startup_new += "_" + to_string(selected);
dprintf(DEBUG_NORMAL, "[update] Start selected partition %d (%s)\n", selected, startup_new.c_str()); dprintf(DEBUG_NORMAL, "[update] Start selected partition %d (%s)\n", selected, startup_new.c_str());
#ifndef DRYRUN #ifndef DRYRUN
CFileHelpers fh; CFileHelpers fh;
fh.copyFile(startup_new.c_str(), startup_file.c_str()); fh.copyFile(startup_new.c_str(), "/boot/STARTUP");
#endif #endif
} }
} else if (selected > 0 && strcmp(c, to_string(selected).c_str()) == 0) { } else if (selected > 0 && strcmp(c, to_string(selected).c_str()) == 0) {