mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Softupdate: Skip checkSize() when update_dir=/tmp on non apollo platform
- supplement to87fef9c895
Origin commit data ------------------ Commit:8eacdd6e09
Author: Michael Liebmann <tuxcode.bbg@gmail.com> Date: 2013-08-20 (Tue, 20 Aug 2013)
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