aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-06-18 17:28:54 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-18 17:28:54 +1000
commit7ae068e86cce5bb44ff5d66c430df972dafb34e3 (patch)
treea0313db659462542bc64b73ef48e7b88fe968d34 /external
parentf7290fa4d622c4530e8bc24826904419dacc863c (diff)
downloadskiboot-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.sh8
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