# HG changeset patch # User Pascal Bellard # Date 1233493648 0 # Node ID dcd78f3d0238ce66b6b1d9004774ea4611541fc3 # Parent 532538d67b1c3b225f0663e170ea505339ffc493 get-wifi-firmware: add get-zd1211-firmware diff -r 532538d67b1c -r dcd78f3d0238 get-wifi-firmware/receipt --- a/get-wifi-firmware/receipt Sun Feb 01 12:36:41 2009 +0000 +++ b/get-wifi-firmware/receipt Sun Feb 01 13:07:28 2009 +0000 @@ -12,7 +12,7 @@ { mkdir -p $fs/usr/bin cp stuff/$PACKAGE $fs/usr/bin - for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 \ + for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 zd1211 \ iwlwifi-3945 iwlwifi-4965 iwlwifi-5000; do ln -s $PACKAGE $fs/usr/bin/get-$i-firmware done diff -r 532538d67b1c -r dcd78f3d0238 get-wifi-firmware/stuff/get-wifi-firmware --- a/get-wifi-firmware/stuff/get-wifi-firmware Sun Feb 01 12:36:41 2009 +0000 +++ b/get-wifi-firmware/stuff/get-wifi-firmware Sun Feb 01 13:07:28 2009 +0000 @@ -65,6 +65,12 @@ WEB_SITE="http://www.ralinktech.com/" WGET_URL="http://www.ralink.com.tw/data/RT73_Linux_STA_Drv$VERSION.tar.gz" ;; +zd1211) + VERSION=2.16.0.0-0.1 + SHORT_DESC="zd1211/zd1211rw Wireless Lan firmware." + WEB_SITE="http://packages.debian.org/etch/zd1211-firmware" + WGET_URL="http://mirrors.kernel.org/debian/pool/non-free/z/zd1211-firmware/zd1211-firmware_2.16.0.0-0.1_all.deb" + ;; *) echo "Unknown wifi driver. Please run one of the following commands:" for i in $(cd $(dirname $0); ls get-*-firmware); do [ "$i" = "get-wifi-firmware" ] && continue @@ -102,6 +108,7 @@ wget $WGET_URL case "$WGET_URL" in *rpm) rpm2cpio < $(basename $WGET_URL) | cpio -id;; +*deb) dpkg-deb -x $(basename $WGET_URL) . ;; *bz2) tar xjf $(basename $WGET_URL) cd $SUBDIR/kmod;; *tar.gz|*tgz) tar xzf $(basename $WGET_URL);; @@ -118,6 +125,11 @@ rt61) mv RT61_Firmware_V$VERSION/*.bin $PKG-$VERSION/fs/lib/firmware;; rt73) mv RT73_Linux_STA_Drv$VERSION/Module/rt73.bin $PKG-$VERSION/fs/lib/firmware;; iwlwifi*) mv iwlwifi*/iwlwifi*.ucode $PKG-$VERSION/fs/lib/firmware;; +zd1211) mv lib/firmware/zd1211/* $PKG-$VERSION/fs/lib/firmware + for i in $(cd usr/lib/hotplug/firmware; ls); do + target=$(readlink usr/lib/hotplug/firmware/$i) + ln -s $(basename $target) $PKG-$VERSION/fs/lib/firmware/$i + done;; esac # Creat receipt