mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
CFlashExpert: Exclude 'env' from write flash
This commit is contained in:
@@ -802,8 +802,10 @@ int CFlashExpert::showMTDSelector(const std::string & actionkey)
|
||||
char sActionKey[20];
|
||||
bool enabled = true;
|
||||
#ifdef BOXMODEL_APOLLO
|
||||
// disable write uboot / uldr
|
||||
if ((actionkey == "writemtd") && (lx == mtdInfo->findMTDNumberFromName("u-boot") || lx == mtdInfo->findMTDNumberFromName("uldr")))
|
||||
// disable write uboot / uldr / env
|
||||
if ((actionkey == "writemtd") && (lx == mtdInfo->findMTDNumberFromName("u-boot") ||
|
||||
lx == mtdInfo->findMTDNumberFromName("uldr") ||
|
||||
lx == mtdInfo->findMTDNumberFromName("env")))
|
||||
enabled = false;
|
||||
// build jffs2 image from root0
|
||||
if ((actionkey == "readmtd") && (lx == mtdInfo->findMTDNumberFromName("root0"))) {
|
||||
|
Reference in New Issue
Block a user