Allow different releases based on DAC hardware
@@ -53,6 +53,9 @@ for i in "$@"; do
--stable)
RELEASE=stable
;;
+ --critical)
+ RELEASE=critical
+ ;;
*)
RELEASE=$1
esac
@@ -63,7 +66,7 @@ MYVERSION=`cat /etc/hifiberry.version 2>/dev/null`
if [ "$MYVERSION" == "" ]; then
MYVERSION=0
fi
-VERSION=`curl -f -s -d host=$HOST -d version=$MYVERSION -d piversion=$PIVERSION -d releasetag=$RELEASE -d zipsupport=1 -m 10 $UPDATEURL/update-system`
+VERSION=`curl -f -s -d host=$HOST -d version=$MYVERSION -d piversion=$PIVERSION -d releasetag=$RELEASE -d zipsupport=1 -d card="$CURRENT_CARD" -d hatinfo="$CURRENT_HATINFO" -m 10 $UPDATEURL/update-system`
if [ "$?" != 0 ]; then
echo "Couldn't get release information from $UPDATEURL/update-system, aborting..."
exit 1
