add switch to not save configuration over the reflash in noninteractive mode
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 26 Sep 2008 00:10:01 +0000 (00:10 +0000)
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 26 Sep 2008 00:10:01 +0000 (00:10 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12714 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/sbin/sysupgrade

index 432539a..c647462 100755 (executable)
@@ -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
 
This page took 0.033469 seconds and 4 git commands to generate.