mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
Softupdate: Skip checkSize() when update_dir=/tmp on non apollo platform
- supplement to62a14b8c74
Origin commit data ------------------ Branch: ni/coolstream Commit:8eacdd6e09
Author: Michael Liebmann <tuxcode.bbg@gmail.com> Date: 2013-08-20 (Tue, 20 Aug 2013) ------------------ This commit was generated by Migit
This commit is contained in:
@@ -597,7 +597,12 @@ void CFlashExpert::readmtd(int preadmtd)
|
||||
preadmtd = MTD_OF_WHOLE_IMAGE;
|
||||
}
|
||||
|
||||
if (!checkSize(preadmtd, filename))
|
||||
bool skipCheck = false;
|
||||
#ifndef BOXMODEL_APOLLO
|
||||
if ((std::string)g_settings.update_dir == "/tmp")
|
||||
skipCheck = true;
|
||||
#endif
|
||||
if ((!skipCheck) && (!checkSize(preadmtd, filename)))
|
||||
return;
|
||||
|
||||
setTitle(LOCALE_FLASHUPDATE_TITLEREADFLASH);
|
||||
|
Reference in New Issue
Block a user