neutrino: fix up non-extupdate build

this complements commit 070ca8469d after recent changes


Origin commit data
------------------
Branch: ni/coolstream
Commit: 58f6480a34
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2013-09-01 (Sun, 01 Sep 2013)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2013-09-01 20:11:30 +02:00
parent 8edaa32e4f
commit dad3855a49
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) {