From: Joseph Coffland Date: Thu, 18 May 2017 21:08:20 +0000 (-0700) Subject: merge dev X-Git-Url: https://git.buildbotics.com/?a=commitdiff_plain;h=303cf3240e16002a56500d07373b0377dd1a01c7;p=bbctrl-firmware merge dev --- diff --git a/scripts/update-bbctrl b/scripts/update-bbctrl new file mode 100644 index 0000000..c9f2b5d --- /dev/null +++ b/scripts/update-bbctrl @@ -0,0 +1,19 @@ +#!/bin/bash + +UPDATE=$(pwd)/update.tar.bz2 + +if [ ! -e "$UPDATE" ]; then + echo "Missing $UPDATE" + exit 1 +fi + +rm -rf /tmp/update +mkdir /tmp/update +cd /tmp/update + +tar xf "$UPDATE" +cd * +./scripts/install.sh + +cd - +rm -rf /tmp/update