summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a80dbef)
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=base-files
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
PKG_BUILD_DEPENDS:=opkg/host
export SAVE_OVERLAY=0
export DELAY=
export CONF_IMAGE=
export SAVE_OVERLAY=0
export DELAY=
export CONF_IMAGE=
# parse options
while [ -n "$1" ]; do
# parse options
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
export ARGV="$*"
export ARGC="$#"
export ARGV="$*"
export ARGC="$#"
+[ -z "$ARGV" -o $HELP -gt 0 ] && {
cat <<EOF
Usage: $0 [options] <image file or URL>
cat <<EOF
Usage: $0 [options] <image file or URL>
-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