ltq-vdsl-fw: strip legacy dsl_fw logic
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-vdsl-fw / src / vdsl_fw_install.sh
index 4d407567d40696f6f77546fdfc4c29b2efd1e42e..9242e175c0851876bfccf4ccf55423a6e672886d 100755 (executable)
@@ -1,15 +1,13 @@
 #!/bin/sh
+FW="/tmp/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_DSL="vr9_dsl_fw_annex_b.bin"
+MD5_FW="cefbeb7073e02e0fa4ddb6b31ecb3d1e"
+MD5_TAPI="57f2d07f59e11250ce1219bad99c1eda"
+MD5_DSL="655442e31deaa42c9c68944869361ec0"
 
-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_TAPI="/tmp/vr9_tapi_fw.bin"
-FW_DSL="/tmp/vr9_dsl_fw_annex_b.bin"
-FW_TGZ="/tmp/vr9_fw.tgz"
-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
 
@@ -19,6 +17,7 @@ MD5_DSL="59dd9dc81195c6854433c691b163f757"
        echo ""
        [ "$R" = "y" ] || {
                echo "Please manually download the firmware from ${URL} and copy the file to ${FW}"
+               echo "See also https://xdarklight.github.io/lantiq-xdsl-firmware-info/ for alternatives"
                exit 1
        }
        echo "Download w921v Firmware"
@@ -32,7 +31,9 @@ F=`md5sum -b ${FW} | cut -d" " -f1`
        exit 1
 }
 
+cd /tmp
 echo "Unpack and decompress w921v Firmware"
+
 w921v_fw_cutter
 [ $? -eq 0 ] || exit 1
 
@@ -45,4 +46,3 @@ D=`md5sum -b ${FW_DSL} | cut -d" " -f1`
 }
 
 cp ${FW_TAPI} ${FW_DSL} /lib/firmware/
-ln -s /lib/firmware/vr9_dsl_fw_annex_b.bin /lib/firmware/vdsl.bin