iop ssh_sysupgrade: be verbose.

This commit is contained in:
Kenneth Johansson 2018-04-10 17:37:43 +02:00
parent f52e3a6d43
commit 91fe77784e

View file

@ -22,7 +22,7 @@ function ssh_sysupgrade {
fi fi
IMAGE=`basename $2` IMAGE=`basename $2`
echo "sysupgrade host: $1 with file $IMAGE" echo "sysupgrade host: $1 with file $IMAGE"
[ "$2" ] && [ -e "$2" ] && scp $2 root@$1:/tmp/ && ssh -o ConnectTimeout=60 root@$1 "sysupgrade $3 /tmp/$IMAGE" && echo "sysupgrade done!" [ "$2" ] && [ -e "$2" ] && scp $2 root@$1:/tmp/ && ssh -o ConnectTimeout=60 root@$1 "sysupgrade -v $3 /tmp/$IMAGE" && echo "sysupgrade done!"
} }
register_command "ssh_sysupgrade" "<host> <file> [opts] Install firmware on remote host with SSH" register_command "ssh_sysupgrade" "<host> <file> [opts] Install firmware on remote host with SSH"