get-scripts view speedtouch-firmware @ rev 36

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