mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
neutrino: fix up non-extupdate build
this complements commit1684f2481d
after recent changes Origin commit data ------------------ Commit:58f6480a34
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de> Date: 2013-09-01 (Sun, 01 Sep 2013)
This commit is contained in:
@@ -591,9 +591,11 @@ void CFlashExpert::readmtd(int preadmtd)
|
||||
std::string hostName = netGetHostname();
|
||||
std::string timeStr = getNowTimeStr("_%Y%m%d_%H%M");
|
||||
|
||||
#if ENABLE_EXTUPDATE
|
||||
if (g_settings.softupdate_name_mode_backup == CExtUpdate::SOFTUPDATE_NAME_HOSTNAME_TIME)
|
||||
filename = (std::string)g_settings.update_dir + "/" + mtdInfo->getMTDName(preadmtd) + timeStr + "_" + hostName + ".img";
|
||||
else
|
||||
#endif
|
||||
filename = (std::string)g_settings.update_dir + "/" + mtdInfo->getMTDName(preadmtd) + timeStr + ".img";
|
||||
|
||||
if (preadmtd == -1) {
|
||||
|
Reference in New Issue
Block a user