projects
/
openwrt
/
staging
/
aparcar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e91cf2
)
add switch to not save configuration over the reflash in noninteractive mode
author
Travis Kemen
<thepeople@openwrt.org>
Fri, 26 Sep 2008 00:10:01 +0000
(
00:10
+0000)
committer
Travis Kemen
<thepeople@openwrt.org>
Fri, 26 Sep 2008 00:10:01 +0000
(
00:10
+0000)
SVN-Revision: 12714
package/base-files/files/sbin/sysupgrade
patch
|
blob
|
history
diff --git
a/package/base-files/files/sbin/sysupgrade
b/package/base-files/files/sbin/sysupgrade
index 432539a2f71cd4239b11b709231b23544f8ed08d..c6474623416f4f9df06a1862d24d93f36f8397de 100755
(executable)
--- 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