add switch to not save configuration over the reflash in noninteractive mode

SVN-Revision: 12714
lede-17.01
Travis Kemen 2008-09-26 00:10:01 +00:00
parent 2e91cf283b
commit 3770c99cf8
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,7 @@ while [ -n "$1" ]; do
-d) export DELAY="$2"; shift;; -d) export DELAY="$2"; shift;;
-v) export VERBOSE="$(($VERBOSE + 1))";; -v) export VERBOSE="$(($VERBOSE + 1))";;
-q) export VERBOSE="$(($VERBOSE - 1))";; -q) export VERBOSE="$(($VERBOSE - 1))";;
-n) export SAVE_CONFIG=0
-*) -*)
echo "Invalid option: $1" echo "Invalid option: $1"
exit 1 exit 1
@ -38,6 +39,7 @@ Usage: $0 [options] <image file or URL>
Options: Options:
-d <delay> add a delay before rebooting -d <delay> add a delay before rebooting
-i interactive mode -i interactive mode
-n do not save configuration over reflash
-q less verbose -q less verbose
-v more verbose -v more verbose