diff options
author | Travis Kemen <thepeople@openwrt.org> | 2008-09-26 00:10:01 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2008-09-26 00:10:01 +0000 |
commit | 98daed4072b83c620c04995140dab9e271018868 (patch) | |
tree | 5ef638d4154f03bef537c81367bf23baf178d2b9 /package/base-files/files | |
parent | f16cc7b51b907224956287313b9453cbfa4f499f (diff) | |
download | master-187ad058-98daed4072b83c620c04995140dab9e271018868.tar.gz master-187ad058-98daed4072b83c620c04995140dab9e271018868.tar.bz2 master-187ad058-98daed4072b83c620c04995140dab9e271018868.zip |
add switch to not save configuration over the reflash in noninteractive mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12714 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/sbin/sysupgrade | 2 |
1 files changed, 2 insertions, 0 deletions
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] <image file or URL> Options: -d <delay> add a delay before rebooting -i interactive mode + -n do not save configuration over reflash -q less verbose -v more verbose |