diff options
author | John Crispin <john@openwrt.org> | 2010-03-31 21:12:02 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2010-03-31 21:12:02 +0000 |
commit | bfc37a1a1906ed5d7c310766688fd903a2704032 (patch) | |
tree | 28d080c4d9b3fc5c4cdca49a2480a0600c143f70 /target/linux | |
parent | 457f4293ced148423c249562d400d03ca6b263f6 (diff) | |
download | mtk-20170518-bfc37a1a1906ed5d7c310766688fd903a2704032.zip mtk-20170518-bfc37a1a1906ed5d7c310766688fd903a2704032.tar.gz mtk-20170518-bfc37a1a1906ed5d7c310766688fd903a2704032.tar.bz2 |
improve extract code
SVN-Revision: 20641
Diffstat (limited to 'target/linux')
-rwxr-xr-x | target/linux/ifxmips/extract.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/target/linux/ifxmips/extract.sh b/target/linux/ifxmips/extract.sh index 4024969..7b1c1da 100755 --- a/target/linux/ifxmips/extract.sh +++ b/target/linux/ifxmips/extract.sh @@ -11,10 +11,16 @@ echo "Please only do so if it is legal in your country" exit 1 } -[ ! -f ${DIR}bbd.crypt ] && { - dd if=${FILE} of=${DIR}bbd.crypt bs=1 skip=104 count=1472302 +[ -f ${DIR}/ifxmips_fw_decode.tar.bz2 -a ! -f ${DIR}voip_coef.bin ] && { + [ ! -f ${DIR}decode_ifx_fw ] && { + tar xjf ${DIR}ifxmips_fw_decode.tar.bz2 ifxmips_fw_decode/decode.c -O > ${DIR}decode.c + gcc -o ${DIR}decode_ifx_fw ${DIR}decode.c + } + [ ! -f ${DIR}voip_coef.lzma ] && { + ${DIR}decode_ifx_fw $FILE ${DIR}voip_coef.lzma + } + lzma d ${DIR}voip_coef.lzma ${DIR}voip_coef.bin } - [ ! -f ${DIR}dsl_a.bin ] && { dd if=${FILE} of=${DIR}dsl1.lzma bs=1 skip=2168832 count=150724 lzma d ${DIR}dsl2.lzma ${DIR}dsl_a.bin |