Softupdate: Skip checkSize() when update_dir=/tmp on non apollo platform

- supplement to 87fef9c895


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:
Michael Liebmann
2013-08-20 20:48:19 +02:00
parent b77b1a38bd
commit 26ecade694

View File

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