X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3b61310e43183ec4f4584d2c0a7cbaf9c03857af..c4174021acc57c9d482e4496733352bcac5a0d13:/target/linux/ifxmips/extract.sh?ds=sidebyside diff --git a/target/linux/ifxmips/extract.sh b/target/linux/ifxmips/extract.sh index 52dfbd56e..98e413e0b 100755 --- a/target/linux/ifxmips/extract.sh +++ b/target/linux/ifxmips/extract.sh @@ -12,14 +12,16 @@ echo "Please only do so if it is legal in your country" } [ -f ${DIR}/ifxmips_fw_decodev2.tar.bz2 -a ! -f ${DIR}voip_coef.bin ] && { - [ ! -f ${DIR}decode_ifx_fw ] && { + [ ! -f ${DIR}decode_ifx_fw && -f ${DIR}ifxmips_fw_decodev2.tar.bz2 ] && { tar xjf ${DIR}ifxmips_fw_decodev2.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 + [ ! -f ${DIR}decode_ifx_fw ] && { + [ ! -f ${DIR}voip_coef.lzma ] && { + ${DIR}decode_ifx_fw $FILE ${DIR}voip_coef.lzma + } + lzma d ${DIR}voip_coef.lzma ${DIR}voip_coef.bin } - 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