fff-sysupgrade: merge SOC and SUBTARGET

This make it easier to use new targets without subtarget.

Signed-off-by: Christian Dresel <fff@chrisi01.de>
Reviewed-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Christian Dresel 2018-11-25 10:10:40 +01:00 committed by Adrian Schmutzler
parent 83a70ed5a9
commit 9999b7b2cb
1 changed files with 3 additions and 5 deletions

View File

@ -17,12 +17,10 @@ BOARD=$(uci get board.model.name)
#decide SOC
case $BOARD in
tl-wdr4900-v1 )
SOC="mpc85xx"
SUBTARGET="g"
SOC="mpc85xx-g"
;;
* )
SOC="ar71xx"
SUBTARGET="t"
SOC="ar71xx-t"
;;
esac
echo ""
@ -71,7 +69,7 @@ if [ "$VERSION" = "$FIRMWARE_VERSION" ]; then
done
fi
FILE="fff-${VERSION}-${SOC}-${SUBTARGET}-${BOARD}-squashfs-sysupgrade.bin"
FILE="fff-${VERSION}-${SOC}-${BOARD}-squashfs-sysupgrade.bin"
echo "Downloading $FILE"
echo ""
wget "${UPGRADE_PATH}/${FILE}"