Changeset 40716


Ignore:
Timestamp:
2014-05-06T23:06:27+02:00 (4 years ago)
Author:
nbd
Message:

ltq-vdsl-fw: vdsl_fw_install.sh: store firmware as tar.gz in flash

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/lantiq/ltq-vdsl-fw/src/vdsl_fw_install.sh

    r37007 r40716  
    11#!/bin/sh 
     2. /lib/functions.sh 
    23 
    34FW="/tmp/Firmware_Speedport_W921V_1.20.000.bin" 
    45URL="http://hilfe.telekom.de/dlp/eki/downloads/Speedport/Speedport%20W%20921V/Firmware_Speedport_W921V_1.20.000.bin" 
    5 FW_TAPI="/tmp/vr9_tapi_fw.bin" 
    6 FW_DSL="/tmp/vr9_dsl_fw_annex_b.bin" 
    7 FW_TGZ="/tmp/vr9_fw.tgz" 
     6FW_TAPI="vr9_tapi_fw.bin" 
     7FW_DSL="vr9_dsl_fw_annex_b.bin" 
    88MD5_FW="4d812f2c3476dadd738b022c4767c491" 
    99MD5_TAPI="06b6ab3481b8d3eb7e8bf6131f7f6b7f" 
     
    3333} 
    3434 
     35cd /tmp 
    3536echo "Unpack and decompress w921v Firmware" 
     37 
    3638w921v_fw_cutter 
    3739[ $? -eq 0 ] || exit 1 
     
    4547} 
    4648 
    47 cp ${FW_TAPI} ${FW_DSL} /lib/firmware/ 
    48 ln -s /lib/firmware/vr9_dsl_fw_annex_b.bin /lib/firmware/vdsl.bin 
     49MTD=$(find_mtd_index dsl_fw) 
     50if [ "$MTD" -gt 0 -a -e "/dev/mtd$MTD" ]; then 
     51        echo "Storing firmware in flash" 
     52        tar cvz ${FW_TAPI} ${FW_DSL} > "/dev/mtd$MTD" 
     53        /etc/init.d/dsl_fs boot 
     54else 
     55        cp ${FW_TAPI} ${FW_DSL} /lib/firmware/ 
     56        ln -s /lib/firmware/vr9_dsl_fw_annex_b.bin /lib/firmware/vdsl.bin 
     57fi 
Note: See TracChangeset for help on using the changeset viewer.