diff options
author | John Crispin <john@openwrt.org> | 2015-12-11 15:05:40 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-12-11 15:05:40 +0000 |
commit | 0938233fcdef67d969f9429a10761cc640c6d56d (patch) | |
tree | 7ccad7e4c703260f288aeff5b8232b387fa7cc84 /package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh | |
parent | 787120e3a3e3cfdf26efc22c652743f5d91840fd (diff) | |
download | upstream-0938233fcdef67d969f9429a10761cc640c6d56d.tar.gz upstream-0938233fcdef67d969f9429a10761cc640c6d56d.tar.bz2 upstream-0938233fcdef67d969f9429a10761cc640c6d56d.zip |
lantiq: get rid of ltq-vdsl-fw
Because of dsl-vrx200-firmware-xdsl-* there's no need anymore to
download a dsl firmware at runtime.
Signed-off-by: Andre Heider <a.heider@gmail.com>
SVN-Revision: 47851
Diffstat (limited to 'package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh')
-rwxr-xr-x | package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh b/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh deleted file mode 100755 index 4572abc060..0000000000 --- a/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -. /lib/functions.sh - -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="0a099d08dbf091c74d685b532cbb1390" -MD5_TAPI="06b6ab3481b8d3eb7e8bf6131f7f6b7f" -MD5_DSL="59dd9dc81195c6854433c691b163f757" - -[ -f /lib/firmware/vdsl.bin ] && exit 0 - -[ -z "$1" ] || URL=$1 - -[ -f "${FW}" ] || { - echo "${FW} does not exist. Try to Download it ? (y/N)" - read -n 1 R - echo "" - [ "$R" = "y" ] || { - echo "Please manually download the firmware from ${URL} and copy the file to ${FW}" - exit 1 - } - echo "Download w921v Firmware" - wget "${URL}" -O "${FW}" - [ $? -eq 0 -a -f "${FW}" ] || exit 1 -} - -F=`md5sum -b ${FW} | cut -d" " -f1` -[ "$F" = "${MD5_FW}" ] || { - echo "Failed to verify Firmware MD5" - exit 1 -} - -cd /tmp -echo "Unpack and decompress w921v Firmware" - -w921v_fw_cutter -[ $? -eq 0 ] || exit 1 - -T=`md5sum -b ${FW_TAPI} | cut -d" " -f1` -D=`md5sum -b ${FW_DSL} | cut -d" " -f1` - -[ "$T" = "${MD5_TAPI}" -a "$D" = "${MD5_DSL}" ] || { - echo "Failed to verify MD5" - exit 1 -} - -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} | 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 |