mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iop ssh_upgrade: lost a $
it compared a string instead of a variable.
This commit is contained in:
parent
227f258789
commit
e0792ad185
1 changed files with 6 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ function ssh_upgrade {
|
||||||
upd_fw=""
|
upd_fw=""
|
||||||
upd_host="192.168.1.1"
|
upd_host="192.168.1.1"
|
||||||
|
|
||||||
while getopts "f:hnxt:" opt; do
|
while getopts "f:hnxt:i" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
n)
|
n)
|
||||||
upd_noreboot=1
|
upd_noreboot=1
|
||||||
|
|
@ -74,6 +74,10 @@ function ssh_upgrade {
|
||||||
t)
|
t)
|
||||||
upd_host=$OPTARG
|
upd_host=$OPTARG
|
||||||
;;
|
;;
|
||||||
|
i)
|
||||||
|
echo "not supported"
|
||||||
|
return
|
||||||
|
;;
|
||||||
h)
|
h)
|
||||||
upd_usage
|
upd_usage
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -85,7 +89,7 @@ function ssh_upgrade {
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -n "upd_fw" ]
|
if [ -n "$upd_fw" ]
|
||||||
then
|
then
|
||||||
upd_fw_base=$(basename $upd_fw);
|
upd_fw_base=$(basename $upd_fw);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue