Add short option -s for --ssh-upgrade
This commit is contained in:
@@ -74,7 +74,7 @@ OPTIONS
|
|||||||
--profile, -p PROFILE
|
--profile, -p PROFILE
|
||||||
--version, -v OPENWRT_VERSION
|
--version, -v OPENWRT_VERSION
|
||||||
--builddir, -b PATH
|
--builddir, -b PATH
|
||||||
--ssh-upgrade SSH_PATH
|
--ssh-upgrade, -s SSH_PATH
|
||||||
Example: root@192.168.1.1
|
Example: root@192.168.1.1
|
||||||
--flash, -f DEVICE
|
--flash, -f DEVICE
|
||||||
Example: /dev/sdX
|
Example: /dev/sdX
|
||||||
@@ -90,7 +90,7 @@ parseInput() {
|
|||||||
|
|
||||||
debug "${FUNCNAME[0]}"
|
debug "${FUNCNAME[0]}"
|
||||||
|
|
||||||
if _input=$(getopt -o +v:p:b:f:dh -l version:,profile:,builddir:,ssh-upgrade:,flash:,debug,help -- "$@"); then
|
if _input=$(getopt -o +v:p:b:s:f:dh -l version:,profile:,builddir:,ssh-upgrade:,flash:,debug,help -- "$@"); then
|
||||||
eval set -- "$_input"
|
eval set -- "$_input"
|
||||||
while true; do
|
while true; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@@ -103,7 +103,7 @@ parseInput() {
|
|||||||
--builddir|-b)
|
--builddir|-b)
|
||||||
shift && _builddir="$1"
|
shift && _builddir="$1"
|
||||||
;;
|
;;
|
||||||
--ssh-upgrade)
|
--ssh-upgrade|-s)
|
||||||
shift && _ssh_upgrade_path="$1"
|
shift && _ssh_upgrade_path="$1"
|
||||||
;;
|
;;
|
||||||
--flash|-f)
|
--flash|-f)
|
||||||
|
|||||||
Reference in New Issue
Block a user