mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
Softupdate: Skip checkSize() when update_dir=/tmp on non apollo platform
- supplement to a3762416af
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