projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[package] iptables: drop iptables-utils and ip6tables-utils, ship needed symlinks...
[openwrt.git]
/
package
/
base-files
/
files
/
sbin
/
sysupgrade
diff --git
a/package/base-files/files/sbin/sysupgrade
b/package/base-files/files/sbin/sysupgrade
index
3d76bb3
..
7efb2b4
100755
(executable)
--- a/
package/base-files/files/sbin/sysupgrade
+++ b/
package/base-files/files/sbin/sysupgrade
@@
-10,6
+10,7
@@
export SAVE_CONFIG=1
export SAVE_OVERLAY=0
export DELAY=
export CONF_IMAGE=
export SAVE_OVERLAY=0
export DELAY=
export CONF_IMAGE=
+export HELP=0
# parse options
while [ -n "$1" ]; do
# parse options
while [ -n "$1" ]; do
@@
-21,6
+22,7
@@
while [ -n "$1" ]; do
-n) export SAVE_CONFIG=0;;
-c) export SAVE_OVERLAY=1;;
-f) export CONF_IMAGE="$2"; shift;;
-n) export SAVE_CONFIG=0;;
-c) export SAVE_OVERLAY=1;;
-f) export CONF_IMAGE="$2"; shift;;
+ -h|--help) export HELP=1; break;;
-*)
echo "Invalid option: $1"
exit 1
-*)
echo "Invalid option: $1"
exit 1
@@
-36,7
+38,7
@@
export CONF_TAR=/tmp/sysupgrade.tgz
export ARGV="$*"
export ARGC="$#"
export ARGV="$*"
export ARGC="$#"
-[ -z "$ARGV" ] && {
+[ -z "$ARGV"
-o $HELP -gt 0
] && {
cat <<EOF
Usage: $0 [options] <image file or URL>
cat <<EOF
Usage: $0 [options] <image file or URL>
@@
-48,6
+50,7
@@
Options:
-n do not save configuration over reflash
-q less verbose
-v more verbose
-n do not save configuration over reflash
-q less verbose
-v more verbose
+ -h / --help display this help
EOF
exit 1
EOF
exit 1
This page took
0.026812 seconds
and
4
git commands to generate.