ltq-vdsl-fw: strip legacy dsl_fw logic

We unfortunately dropped support for persistent in-flash DSL firmware.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle 2018-06-15 13:30:47 +02:00
parent c8ac28237d
commit 70f4845777

View File

@ -1,6 +1,4 @@
#!/bin/sh #!/bin/sh
. /lib/functions.sh
FW="/tmp/firmware-speedport-w921v-1.44.000.bin" FW="/tmp/firmware-speedport-w921v-1.44.000.bin"
URL="https://www.telekom.de/hilfe/downloads/firmware-speedport-w921v-1.44.000.bin" URL="https://www.telekom.de/hilfe/downloads/firmware-speedport-w921v-1.44.000.bin"
FW_TAPI="vr9_tapi_fw.bin" FW_TAPI="vr9_tapi_fw.bin"
@ -47,12 +45,4 @@ D=`md5sum -b ${FW_DSL} | cut -d" " -f1`
exit 1 exit 1
} }
MTD=$(find_mtd_index dsl_fw) cp ${FW_TAPI} ${FW_DSL} /lib/firmware/
if [ "$MTD" -gt 0 -a -e "/dev/mtd$MTD" ]; then
echo "Storing firmware in flash"
tar cvz ${FW_TAPI} ${FW_DSL} | mtd write - "/dev/mtd$MTD"
/etc/init.d/dsl_fs boot
else
cp ${FW_TAPI} ${FW_DSL} /lib/firmware/
ln -s /lib/firmware/vr9_dsl_fw_annex_b.bin /lib/firmware/vdsl.bin
fi