OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh |
2 | FW="/tmp/firmware-speedport-w921v-1.44.000.bin" |
||
3 | URL="https://www.telekom.de/hilfe/downloads/firmware-speedport-w921v-1.44.000.bin" |
||
4 | FW_TAPI="vr9_tapi_fw.bin" |
||
5 | FW_DSL="vr9_dsl_fw_annex_b.bin" |
||
6 | MD5_FW="cefbeb7073e02e0fa4ddb6b31ecb3d1e" |
||
7 | MD5_TAPI="57f2d07f59e11250ce1219bad99c1eda" |
||
8 | MD5_DSL="655442e31deaa42c9c68944869361ec0" |
||
9 | |||
10 | [ -f /lib/firmware/vdsl.bin ] && exit 0 |
||
11 | |||
12 | [ -z "$1" ] || URL=$1 |
||
13 | |||
14 | [ -f "${FW}" ] || { |
||
15 | echo "${FW} does not exist. Try to Download it ? (y/N)" |
||
16 | read -n 1 R |
||
17 | echo "" |
||
18 | [ "$R" = "y" ] || { |
||
19 | echo "Please manually download the firmware from ${URL} and copy the file to ${FW}" |
||
20 | echo "See also https://xdarklight.github.io/lantiq-xdsl-firmware-info/ for alternatives" |
||
21 | exit 1 |
||
22 | } |
||
23 | echo "Download w921v Firmware" |
||
24 | wget "${URL}" -O "${FW}" |
||
25 | [ $? -eq 0 -a -f "${FW}" ] || exit 1 |
||
26 | } |
||
27 | |||
28 | F=`md5sum -b ${FW} | cut -d" " -f1` |
||
29 | [ "$F" = "${MD5_FW}" ] || { |
||
30 | echo "Failed to verify Firmware MD5" |
||
31 | exit 1 |
||
32 | } |
||
33 | |||
34 | cd /tmp |
||
35 | echo "Unpack and decompress w921v Firmware" |
||
36 | |||
37 | w921v_fw_cutter |
||
38 | [ $? -eq 0 ] || exit 1 |
||
39 | |||
40 | T=`md5sum -b ${FW_TAPI} | cut -d" " -f1` |
||
41 | D=`md5sum -b ${FW_DSL} | cut -d" " -f1` |
||
42 | |||
43 | [ "$T" = "${MD5_TAPI}" -a "$D" = "${MD5_DSL}" ] || { |
||
44 | echo "Failed to verify MD5" |
||
45 | exit 1 |
||
46 | } |
||
47 | |||
48 | cp ${FW_TAPI} ${FW_DSL} /lib/firmware/ |