summaryrefslogtreecommitdiffstats
path: root/minikrebs/upgrade
diff options
context:
space:
mode:
Diffstat (limited to 'minikrebs/upgrade')
-rwxr-xr-xminikrebs/upgrade6
1 files changed, 3 insertions, 3 deletions
diff --git a/minikrebs/upgrade b/minikrebs/upgrade
index e36ed5ad..36ef91cc 100755
--- a/minikrebs/upgrade
+++ b/minikrebs/upgrade
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
OWN_ADDR=${OWN_ADDR:-192.168.0.1}
PORT=8080
IMAGE=${IMAGE:-openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin}
@@ -22,8 +22,8 @@ if [ -e "$IMAGE" ];then
sleep 1
SERVER_PID=$!
ssh root@$IP "wget -O /tmp/firmware.bin http://${OWN_ADDR}:${PORT}/${IMAGE} \
- && mtd write /tmp/firmware.bin firmware \
- && reboot"
+ && /sbin/mtd write /tmp/firmware.bin firmware \
+ && /sbin/reboot"
kill $SERVER_PID
else
echo "cannot find ar71xx build, aborting"