From ffb152dd955dfe8191cd796788e1c5d723838642 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 22 Feb 2006 23:33:17 +0000 Subject: [PATCH] remove 'erase nvram' option from webif firmware upgrade page SVN-Revision: 3264 --- .../package/webif/files/www/cgi-bin/webif/upgrade.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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 -- 2.30.2