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

- supplement to a3762416af
This commit is contained in:
Michael Liebmann
2013-08-20 20:48:19 +02:00
parent 9b12442b5d
commit 8eacdd6e09

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