From 4e9836fa1717b49714535a6412f2979b594e81af Mon Sep 17 00:00:00 2001 From: Kenneth Johansson Date: Mon, 14 Jan 2019 15:34:14 +0100 Subject: [PATCH] iop: remove ssh_sysupgrade* use ssh_upgrade instead. --- iop/iop.completion | 3 +- iop/scripts/ssh_sysupgrade.sh | 56 ----------------------------------- 2 files changed, 1 insertion(+), 58 deletions(-) delete mode 100644 iop/scripts/ssh_sysupgrade.sh diff --git a/iop/iop.completion b/iop/iop.completion index ea9008347..a8d6bc1c3 100644 --- a/iop/iop.completion +++ b/iop/iop.completion @@ -34,8 +34,7 @@ _iop() iopcmds="bootstrap cfe_upgrade cfe_upgrade_latest extract_core \ feeds_update genconfig generate_tarballs install_key \ - scp_changes setup_host ssh_install_key ssh_sysupgrade \ - ssh_sysupgrade_latest ssh_sysupgrade_latest_w status \ + scp_changes setup_host ssh_install_key status \ update_package update_feed_branches ssh_upgrade" if [ $COMP_CWORD -eq 1 ] ; then diff --git a/iop/scripts/ssh_sysupgrade.sh b/iop/scripts/ssh_sysupgrade.sh deleted file mode 100644 index 95a20d8d7..000000000 --- a/iop/scripts/ssh_sysupgrade.sh +++ /dev/null @@ -1,56 +0,0 @@ -# this is a developer helper script to install firmware on a remote host with SSH - -function usage { - echo "usage: $0 ssh_sysupgrade [opts]" -} - -function ssh_sysupgrade { - if [ -z "$1" ] ; then - usage - echo "Error: host required" - exit 1 - fi - if [ -z "$2" ] ; then - usage - echo "Error: firmware filename required" - exit 1 - fi - if [ ! -e $2 ] ; then - usage - echo "Error: firmware file does not exist" - exit 1 - fi - IMAGE=`basename $2` - echo "sysupgrade host: $1 with file $IMAGE" - [ "$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" " [opts] Install firmware on remote host with SSH" - -function ssh_sysupgrade_latest { - if [ -z "$1" ] ; then - echo "usage: $0 ssh_sysupgrade_latest [opts]" - echo "Error: host required" - exit 1 - fi - { cd `dirname $0` - IMAGE=`ls -Art bin/*/*/*/*.y[23] | tail -n1` - [ "$IMAGE" ] && [ -e "$IMAGE" ] && ./iop ssh_sysupgrade $1 $IMAGE $2 - } -} - -register_command "ssh_sysupgrade_latest" " [opts] Install latest ubifs firmware on remote host with SSH" - -function ssh_sysupgrade_latest_w { - if [ -z "$1" ] ; then - echo "usage: $0 ssh_sysupgrade_latest_w [opts]" - echo "Error: host required" - exit 1 - fi - { cd `dirname $0` - IMAGE=`ls -Art bin/*/*.w | tail -n1` - [ "$IMAGE" ] && [ -e "$IMAGE" ] && ./iop ssh_sysupgrade $1 $IMAGE $2 - } -} - -register_command "ssh_sysupgrade_latest_w" " [opts] Install latest jffs2 firmware on remote host with SSH"