diff options
author | makefu <github@syntax-fehler.de> | 2013-02-23 15:55:49 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-02-23 15:55:49 +0100 |
commit | 001bfd5f2b6890cafd209de4ea360927d4dd8a55 (patch) | |
tree | ff5805c808afc2fbe460f767f65ae1152fb32776 /minikrebs/upgrade | |
parent | 1ca9360f5a35d0c2ee5876bba85f2ead44e5a540 (diff) |
minikrebs is now a submodule
Diffstat (limited to 'minikrebs/upgrade')
m--------- | minikrebs | 0 | ||||
-rwxr-xr-x | minikrebs/upgrade | 31 |
2 files changed, 0 insertions, 31 deletions
diff --git a/minikrebs b/minikrebs new file mode 160000 +Subproject 8fd46a7e3258bff753c42dc43fecfbbc853a685 diff --git a/minikrebs/upgrade b/minikrebs/upgrade deleted file mode 100755 index 36ef91cc..00000000 --- a/minikrebs/upgrade +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/bash -OWN_ADDR=${OWN_ADDR:-192.168.0.1} -PORT=8080 -IMAGE=${IMAGE:-openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin} -cd $(dirname $(readlink -f $0)) -if [ x"${1:-}" == x ];then - echo "usage: $0 ADDRESS" - echo - echo "ENVIRONMENT:" - echo " OWN_ADDR (currently $OWN_ADDR)" - echo " IMAGE (currently $IMAGE)" - echo " PORT (currently $PORT)" - - exit 1 -fi - -IP=$1 -cd builder/bin/ar71xx/ - -if [ -e "$IMAGE" ];then - python2 -m SimpleHTTPServer $PORT & - sleep 1 - SERVER_PID=$! - ssh root@$IP "wget -O /tmp/firmware.bin http://${OWN_ADDR}:${PORT}/${IMAGE} \ - && /sbin/mtd write /tmp/firmware.bin firmware \ - && /sbin/reboot" - kill $SERVER_PID -else - echo "cannot find ar71xx build, aborting" - exit 1 -fi |