forked from freifunk-franken/firmware
Remove target and subtarget from filename
This simplifies and shortens filenames quite significantly. A rewrite script will be installed on the update servers to allow updating routers with older firmwares. Signed-off-by: Fabian Bläse <fabian@blaese.de> Reviewed-by: Christian Dresel <fff@chrisi01.de>
This commit is contained in:
parent
84a937b798
commit
3e1f6e167d
|
@ -296,9 +296,8 @@ cp_firmware() {
|
||||||
|
|
||||||
for image in ${images[@]}; do
|
for image in ${images[@]}; do
|
||||||
filename_build=${image//openwrt/fff-${version}}
|
filename_build=${image//openwrt/fff-${version}}
|
||||||
filename_build=${filename_build//generic/g}
|
|
||||||
filename_build=${filename_build//tiny/t}
|
|
||||||
filename_build=${filename_build//squashfs-/}
|
filename_build=${filename_build//squashfs-/}
|
||||||
|
filename_build=${filename_build//${chipset}-${subtarget}-/}
|
||||||
cp "$builddir/bin/targets/${chipset}/${subtarget}/$image" "./bin/$filename_build"
|
cp "$builddir/bin/targets/${chipset}/${subtarget}/$image" "./bin/$filename_build"
|
||||||
|
|
||||||
for region in "" "-eu" "-us"; do
|
for region in "" "-eu" "-us"; do
|
||||||
|
|
|
@ -14,16 +14,6 @@ fi
|
||||||
|
|
||||||
BOARD=$(uci get board.model.name)
|
BOARD=$(uci get board.model.name)
|
||||||
|
|
||||||
#decide SOC
|
|
||||||
case $BOARD in
|
|
||||||
tl-wdr4900-v1 )
|
|
||||||
SOC="mpc85xx-g"
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
SOC="ar71xx-t"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
echo ""
|
|
||||||
echo "Hardware: $BOARD"
|
echo "Hardware: $BOARD"
|
||||||
|
|
||||||
#rewrite BOARD
|
#rewrite BOARD
|
||||||
|
@ -69,7 +59,7 @@ if [ "$VERSION" = "$FIRMWARE_VERSION" ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FILE="fff-${VERSION}-${SOC}-${BOARD}-sysupgrade.bin"
|
FILE="fff-${VERSION}-${BOARD}-sysupgrade.bin"
|
||||||
echo "Downloading $FILE"
|
echo "Downloading $FILE"
|
||||||
echo ""
|
echo ""
|
||||||
/bin/busybox wget "${UPGRADE_PATH}/${FILE}"
|
/bin/busybox wget "${UPGRADE_PATH}/${FILE}"
|
||||||
|
|
Loading…
Reference in New Issue