mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
Search mtd device to update by name
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@581 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -83,6 +83,8 @@ CFlashUpdate::CFlashUpdate()
|
||||
:CProgressWindow()
|
||||
{
|
||||
setTitle(LOCALE_FLASHUPDATE_HEAD);
|
||||
sysfs = CMTDInfo::getInstance()->findMTDsystem();
|
||||
printf("Mtd partition to update: %s\n", sysfs.c_str());
|
||||
}
|
||||
|
||||
|
||||
@@ -358,6 +360,11 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &)
|
||||
|
||||
paint();
|
||||
|
||||
if(sysfs.size() < 8) {
|
||||
ShowHintUTF(LOCALE_MESSAGEBOX_ERROR, g_Locale->getText(LOCALE_FLASHUPDATE_CANTOPENMTD));
|
||||
hide();
|
||||
return menu_return::RETURN_REPAINT;
|
||||
}
|
||||
if(!checkVersion4Update()) {
|
||||
hide();
|
||||
return menu_return::RETURN_REPAINT;
|
||||
@@ -389,7 +396,8 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &)
|
||||
showGlobalStatus(40);
|
||||
|
||||
CFlashTool ft;
|
||||
ft.setMTDDevice(MTD_DEVICE_OF_UPDATE_PART);
|
||||
//ft.setMTDDevice(MTD_DEVICE_OF_UPDATE_PART);
|
||||
ft.setMTDDevice(sysfs);
|
||||
ft.setStatusViewer(this);
|
||||
|
||||
showStatusMessageUTF(g_Locale->getText(LOCALE_FLASHUPDATE_MD5CHECK)); // UTF-8
|
||||
|
Reference in New Issue
Block a user