mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
- update: fix new partition for hd6x using g_info.hw_caps->startup_file
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -709,11 +709,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_new = "/boot/STARTUP_" + to_string(selected);
|
std::string startup_file("/boot/");
|
||||||
|
startup_file += g_info.hw_caps->startup_file;
|
||||||
|
std::string startup_new = startup_file + "_" + 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(), "/boot/STARTUP");
|
fh.copyFile(startup_new.c_str(), startup_file.c_str());
|
||||||
#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) {
|
||||||
|
Reference in New Issue
Block a user