Pi version detection did not work well, reverting
#!/bin/bash
cd `dirname $0`
-HOST=$1
+VERSION=$1
+HOST=$2
if [ "$HOST" == "" ]; then
echo $0 hostname
- echo e.g. $0 10.0.1.23 will push the current release to the Pi with the IP address 10.0.1.23
+ echo e.g. $0 piversion 10.0.1.23 will push the current release to the Pi with the IP address 10.0.1.23
exit 1
fi
@@ -13,7 +14,7 @@ if [ "$PORT" == "" ]; then
PORT=22
fi
-VERSION=`sshpass -p 'hifiberry' ssh -p $PORT root@$HOST cat /etc/raspberrypi.version`
+#VERSION=`sshpass -p 'hifiberry' ssh -p $PORT root@$HOST cat /etc/raspberrypi.version`
echo "Updating $HOST with Pi$VERSION release"
