wok-current rev 2128

get-wifi-firmware: add get-zd1211-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 01 13:07:28 2009 +0000 (2009-02-01)
parents 532538d67b1c
children a87fd7946e52
files get-wifi-firmware/receipt get-wifi-firmware/stuff/get-wifi-firmware
line diff
     1.1 --- a/get-wifi-firmware/receipt	Sun Feb 01 12:36:41 2009 +0000
     1.2 +++ b/get-wifi-firmware/receipt	Sun Feb 01 13:07:28 2009 +0000
     1.3 @@ -12,7 +12,7 @@
     1.4  {
     1.5  	mkdir -p $fs/usr/bin
     1.6  	cp stuff/$PACKAGE $fs/usr/bin
     1.7 -	for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 \
     1.8 +	for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 zd1211 \
     1.9  		 iwlwifi-3945 iwlwifi-4965 iwlwifi-5000; do
    1.10  		ln -s $PACKAGE $fs/usr/bin/get-$i-firmware
    1.11  	done
     2.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware	Sun Feb 01 12:36:41 2009 +0000
     2.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware	Sun Feb 01 13:07:28 2009 +0000
     2.3 @@ -65,6 +65,12 @@
     2.4  	WEB_SITE="http://www.ralinktech.com/"
     2.5  	WGET_URL="http://www.ralink.com.tw/data/RT73_Linux_STA_Drv$VERSION.tar.gz"
     2.6  	;;
     2.7 +zd1211)
     2.8 +	VERSION=2.16.0.0-0.1
     2.9 +	SHORT_DESC="zd1211/zd1211rw Wireless Lan firmware."
    2.10 +	WEB_SITE="http://packages.debian.org/etch/zd1211-firmware"
    2.11 +	WGET_URL="http://mirrors.kernel.org/debian/pool/non-free/z/zd1211-firmware/zd1211-firmware_2.16.0.0-0.1_all.deb"
    2.12 +	;;
    2.13  *)	echo "Unknown wifi driver. Please run one of the following commands:"
    2.14  	for i in $(cd $(dirname $0); ls get-*-firmware); do
    2.15  		[ "$i" = "get-wifi-firmware" ] && continue
    2.16 @@ -102,6 +108,7 @@
    2.17  wget $WGET_URL
    2.18  case "$WGET_URL" in
    2.19  *rpm)	rpm2cpio < $(basename $WGET_URL) | cpio -id;;
    2.20 +*deb)	dpkg-deb -x $(basename $WGET_URL) . ;;
    2.21  *bz2)	tar xjf $(basename $WGET_URL)
    2.22  	cd $SUBDIR/kmod;;
    2.23  *tar.gz|*tgz)	tar xzf $(basename $WGET_URL);;
    2.24 @@ -118,6 +125,11 @@
    2.25  rt61)	mv RT61_Firmware_V$VERSION/*.bin $PKG-$VERSION/fs/lib/firmware;;
    2.26  rt73)	mv RT73_Linux_STA_Drv$VERSION/Module/rt73.bin $PKG-$VERSION/fs/lib/firmware;;
    2.27  iwlwifi*) mv iwlwifi*/iwlwifi*.ucode $PKG-$VERSION/fs/lib/firmware;;
    2.28 +zd1211) mv lib/firmware/zd1211/* $PKG-$VERSION/fs/lib/firmware 
    2.29 +	for i in $(cd usr/lib/hotplug/firmware; ls); do
    2.30 +		target=$(readlink usr/lib/hotplug/firmware/$i)
    2.31 +		ln -s $(basename $target) $PKG-$VERSION/fs/lib/firmware/$i
    2.32 +	done;;
    2.33  esac
    2.34  
    2.35  # Creat receipt