From: Travis Kemen Date: Fri, 26 Sep 2008 00:10:01 +0000 (+0000) Subject: add switch to not save configuration over the reflash in noninteractive mode X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3770c99cf86932ecc738f9f7d27e1b7184b29dfe;p=openwrt%2Fstaging%2Fflorian.git add switch to not save configuration over the reflash in noninteractive mode SVN-Revision: 12714 --- diff --git a/package/base-files/files/sbin/sysupgrade b/package/base-files/files/sbin/sysupgrade index 432539a2f7..c647462341 100755 --- a/package/base-files/files/sbin/sysupgrade +++ b/package/base-files/files/sbin/sysupgrade @@ -16,6 +16,7 @@ while [ -n "$1" ]; do -d) export DELAY="$2"; shift;; -v) export VERBOSE="$(($VERBOSE + 1))";; -q) export VERBOSE="$(($VERBOSE - 1))";; + -n) export SAVE_CONFIG=0 -*) echo "Invalid option: $1" exit 1 @@ -38,6 +39,7 @@ Usage: $0 [options] Options: -d add a delay before rebooting -i interactive mode + -n do not save configuration over reflash -q less verbose -v more verbose