mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
* 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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user