get-scripts annotate speedtouch-firmware @ rev 63
Add nanozip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 14:15:08 2016 +0200 (2016-08-10) |
parents | 2cdf3e534506 |
children |
rev | line source |
---|---|
pascal@34 | 1 SHORT_DESC="Firmware for SpeedTouch ADSL Modem." |
pascal@34 | 2 WEB_SITE="http://www.linux-usb.org/SpeedTouch/" |
pascal@34 | 3 # end of get.list data |
pascal@9 | 4 |
pascal@9 | 5 VERSION="3.012" |
pascal@9 | 6 mkdir -p $PACKAGE-$VERSION/fs/lib/firmware |
pascal@9 | 7 TARBALL="SpeedTouch330_firmware_$(echo $VERSION | sed 's/\.//').zip" |
pascal@9 | 8 #http://speedtouch.hysplace.co.uk/firmware.htm |
pascal@29 | 9 #WGET_URL="http://www.speedtouch.com/download/drivers/USB/$TARBALL" |
pascal@9 | 10 #from http://www.filewatcher.com/m/SpeedTouch330_firmware_3012.zip.769125-0.html |
pascal@29 | 11 WGET_URL="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/$TARBALL" |
pascal@29 | 12 wget $WGET_URL |
pascal@63 | 13 [ $TARBALL ] || abort_package |
pascal@29 | 14 unzip -n $(basename $WGET_URL) |
pascal@9 | 15 wget http://www.linux-usb.org/SpeedTouch/firmware/firmware-extractor.tar.gz |
pascal@9 | 16 tar xzf firmware-extractor.tar.gz |
pascal@9 | 17 cd firmware-extractor/ |
pascal@9 | 18 which gcc || tazpkg get-install gcc |
pascal@9 | 19 gcc -o firmware-extractor firmware.c |
pascal@9 | 20 FIRMWARE="ZZZL_$VERSION" |
pascal@9 | 21 [ "$PACKAGE" = "speedtouch-firmware" ] && FIRMWARE="KQD6_$VERSION" |
pascal@9 | 22 cp ../$FIRMWARE mgmt.o |
pascal@9 | 23 ./firmware-extractor mgmt.o |
pascal@9 | 24 install -m 600 speedtch-1.bin speedtch-2.bin \ |
pascal@9 | 25 ../$PACKAGE-$VERSION/fs/lib/firmware |
pascal@9 | 26 cd .. |