* Softupdate: Disable write u-boot

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2196 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
micha-bbg
2012-04-08 14:05:15 +00:00
parent 45a2a6eab8
commit 227b7959cb

View File

@@ -611,8 +611,12 @@ void CFlashExpert::showMTDSelector(const std::string & actionkey)
CMTDInfo* mtdInfo =CMTDInfo::getInstance();
for(int lx=0;lx<mtdInfo->getMTDCount();lx++) {
char sActionKey[20];
bool enabled = true;
// disable write uboot
if ((actionkey == "writemtd") && (lx == 0))
enabled = false;
sprintf(sActionKey, "%s%d", actionkey.c_str(), lx);
mtdselector->addItem(new CMenuForwarderNonLocalized(mtdInfo->getMTDName(lx).c_str(), true, NULL, this, sActionKey));
mtdselector->addItem(new CMenuForwarderNonLocalized(mtdInfo->getMTDName(lx).c_str(), enabled, NULL, this, sActionKey));
}
mtdselector->exec(NULL,"");
delete mtdselector;