From: Felix Fietkau Date: Wed, 22 Feb 2006 23:33:17 +0000 (+0000) Subject: remove 'erase nvram' option from webif firmware upgrade page X-Git-Tag: whiterussian_rc5~113 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ffb152dd955dfe8191cd796788e1c5d723838642;p=openwrt%2Fsvn-archive%2Fopenwrt.git remove 'erase nvram' option from webif firmware upgrade page SVN-Revision: 3264 --- diff --git a/openwrt/package/webif/files/www/cgi-bin/webif/upgrade.sh b/openwrt/package/webif/files/www/cgi-bin/webif/upgrade.sh index dcd2ec1213..c5750fad0b 100755 --- a/openwrt/package/webif/files/www/cgi-bin/webif/upgrade.sh +++ b/openwrt/package/webif/files/www/cgi-bin/webif/upgrade.sh @@ -5,9 +5,6 @@ do_upgrade() { # free some memory :) ps | grep -vE 'Command|init|\[[kbmj]|httpd|haserl|bin/sh|awk|kill|ps|webif' | awk '{ print $1 }' | xargs kill -KILL MEMFREE="$(awk 'BEGIN{ mem = 0 } ($1 == "MemFree:") || ($1 == "Cached:") {mem += int($2)} END{print mem}' /proc/meminfo)" - empty "$ERASE_NVRAM" || { - mtd -q erase nvram - } empty "$ERASE_FS" || MTD_OPT="-e linux" if [ $(($MEMFREE)) -ge 4096 ]; then bstrip "$BOUNDARY" > /tmp/firmware.bin @@ -60,8 +57,7 @@ function printStatus() { @TR<>: - @TR<>
- @TR<> + @TR<> @@ -104,10 +100,6 @@ EOF ERASE_FS=1 bstrip "$BOUNDARY" > /dev/null ;; - erase_nvram) - ERASE_NVRAM=1 - bstrip "$BOUNDARY" > /dev/null - ;; firmware) do_upgrade;; esac done