get-scripts rev 9
Add speedtouch-firmware
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 18 22:12:09 2014 +0000 (2014-02-18) |
parents | fa385ab1b8fb |
children | 2532cbc29d1e |
files | speedtch-firmware speedtouch-firmware speedtouch-silver-firmware |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/speedtch-firmware Tue Feb 18 22:12:09 2014 +0000 1.3 @@ -0,0 +1,1 @@ 1.4 +speedtouch-firmware 1.5 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/speedtouch-firmware Tue Feb 18 22:12:09 2014 +0000 2.3 @@ -0,0 +1,27 @@ 2.4 +DEPENDS="" 2.5 + 2.6 +VERSION="3.012" 2.7 +mkdir -p $PACKAGE-$VERSION/fs/lib/firmware 2.8 +TARBALL="SpeedTouch330_firmware_$(echo $VERSION | sed 's/\.//').zip" 2.9 +SHORT_DESC="Firmware for SpeedTouch ADSL Modem." 2.10 +WEB_SITE="http://www.linux-usb.org/SpeedTouch/" 2.11 +#http://speedtouch.hysplace.co.uk/firmware.htm 2.12 +#URL="http://www.speedtouch.com/download/drivers/USB/$TARBALL" 2.13 +#from http://www.filewatcher.com/m/SpeedTouch330_firmware_3012.zip.769125-0.html 2.14 +URL="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/$TARBALL" 2.15 +wget $URL 2.16 +[ $TARBALL ] || abort_package "Could not download $TARBALL. Exiting." 2.17 +unzip -n $(basename $URL) 2.18 +wget http://www.linux-usb.org/SpeedTouch/firmware/firmware-extractor.tar.gz 2.19 +tar xzf firmware-extractor.tar.gz 2.20 +cd firmware-extractor/ 2.21 +which gcc || tazpkg get-install gcc 2.22 +gcc -o firmware-extractor firmware.c 2.23 +FIRMWARE="ZZZL_$VERSION" 2.24 +[ "$PACKAGE" = "speedtouch-firmware" ] && FIRMWARE="KQD6_$VERSION" 2.25 +cp ../$FIRMWARE mgmt.o 2.26 +./firmware-extractor mgmt.o 2.27 +install -m 600 speedtch-1.bin speedtch-2.bin \ 2.28 + ../$PACKAGE-$VERSION/fs/lib/firmware 2.29 +cd .. 2.30 +set +e