neutrino: fix up non-extupdate build

this complements commit 1684f2481d 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:
Stefan Seyfried
2013-09-01 20:11:30 +02:00
parent 73c2c16129
commit a07ee2b304
3 changed files with 13 additions and 0 deletions

View File

@@ -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) {