diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-18 17:28:54 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-06-18 17:28:54 +1000 |
commit | 7ae068e86cce5bb44ff5d66c430df972dafb34e3 (patch) | |
tree | a0313db659462542bc64b73ef48e7b88fe968d34 /external | |
parent | f7290fa4d622c4530e8bc24826904419dacc863c (diff) | |
download | skiboot-7ae068e86cce5bb44ff5d66c430df972dafb34e3.zip skiboot-7ae068e86cce5bb44ff5d66c430df972dafb34e3.tar.gz skiboot-7ae068e86cce5bb44ff5d66c430df972dafb34e3.tar.bz2 |
Because BMCs love to change things, use dd rather than scp
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r-- | external/boot-tests/bmc_support.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/external/boot-tests/bmc_support.sh b/external/boot-tests/bmc_support.sh index 03357ed..cf18d69 100644 --- a/external/boot-tests/bmc_support.sh +++ b/external/boot-tests/bmc_support.sh @@ -16,7 +16,11 @@ STRIP_CONTROL=0 # How do we SSH/SCP in? SSHCMD="sshpass -e ssh -l $SSHUSER -o LogLevel=quiet -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $target"; -REMOTECPCMD="eval rsync -e \"sshpass -e ssh -l $SSHUSER -o LogLevel=quiet -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \" "; + +# remotecp file target target_location +function remotecp { + sshpass -e ssh -o User=$SSHUSER -o LogLevel=quiet -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $2 dd of=$3 < $1; +} function is_off { return $([ "$($IPMI_COMMAND chassis power status)" = "Chassis Power is off" ]); @@ -29,7 +33,7 @@ function poweroff { } function flash { - $REMOTECPCMD $PNOR $target:/tmp/image.pnor; + remotecp $PNOR $target /tmp/image.pnor; if [ "$?" -ne "0" ] ; then error "Couldn't copy firmware image"; fi |