CFlashExpert: Exclude 'env' from write flash

Origin commit data
------------------
Commit: 4cb2465665
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-09-29 (Sun, 29 Sep 2013)
This commit is contained in:
Michael Liebmann
2013-09-29 11:10:14 +02:00
parent 1392bdf4e7
commit 354a7b479e

View File

@@ -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"))) {