ltq-vdsl-fw: update firmware cutter URL for newer Speedport firmware (fixes #19160)
[openwrt.git] / package / kernel / lantiq / ltq-vdsl-fw / src / vdsl_fw_install.sh
index 63ed948..ecf680b 100755 (executable)
@@ -1,15 +1,15 @@
 #!/bin/sh
 . /lib/functions.sh
 
-FW="/tmp/Firmware_Speedport_W921V_1.20.000.bin"
-URL="http://hilfe.telekom.de/dlp/eki/downloads/Speedport/Speedport%20W%20921V/Firmware_Speedport_W921V_1.20.000.bin"
+FW="/tmp/Firmware_Speedport_W921V_1.21.000.bin"
+URL="http://hilfe.telekom.de/dlp/eki/downloads/Speedport/Speedport%20W%20921V/Firmware_Speedport_W921V_1.21.000.bin"
 FW_TAPI="vr9_tapi_fw.bin"
 FW_DSL="vr9_dsl_fw_annex_b.bin"
 MD5_FW="4d812f2c3476dadd738b022c4767c491"
 MD5_TAPI="06b6ab3481b8d3eb7e8bf6131f7f6b7f"
 MD5_DSL="59dd9dc81195c6854433c691b163f757"
 
-[ -f /lib/firmware/vdsl.bin] && exit 0
+[ -f /lib/firmware/vdsl.bin ] && exit 0
 
 [ -z "$1" ] || URL=$1
 
@@ -49,7 +49,7 @@ D=`md5sum -b ${FW_DSL} | cut -d" " -f1`
 MTD=$(find_mtd_index dsl_fw)
 if [ "$MTD" -gt 0 -a -e "/dev/mtd$MTD" ]; then
        echo "Storing firmware in flash"
-       tar cvz ${FW_TAPI} ${FW_DSL} > "/dev/mtd$MTD"
+       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/