mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
iop ssh_sysupgrade: be verbose.
This commit is contained in:
parent
f52e3a6d43
commit
91fe77784e
1 changed files with 1 additions and 1 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue