wok-current rev 1974
Get-wifi-firmware: add iwlwifi* support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 03 11:44:04 2009 +0000 (2009-01-03) |
parents | 20a6beeb6eee |
children | 1f5b672d2454 |
files | get-wifi-firmware/receipt get-wifi-firmware/stuff/get-wifi-firmware |
line diff
1.1 --- a/get-wifi-firmware/receipt Sat Jan 03 04:12:27 2009 +0100 1.2 +++ b/get-wifi-firmware/receipt Sat Jan 03 11:44:04 2009 +0000 1.3 @@ -12,7 +12,8 @@ 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 ; do 1.8 + for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 \ 1.9 + iwlwifi-3945 iwlwifi-4965 iwlwifi-5000; do 1.10 ln -s $PACKAGE $fs/usr/bin/get-$i-firmware 1.11 done 1.12 }
2.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware Sat Jan 03 04:12:27 2009 +0100 2.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware Sat Jan 03 11:44:04 2009 +0000 2.3 @@ -35,6 +35,24 @@ 2.4 WEB_SITE="http://$MODULE.sourceforge.net/" 2.5 WGET_URL="http://dl.atrpms.net/all/$PKG-$VERSION.noarch.rpm" 2.6 ;; 2.7 +iwlwifi-3945) 2.8 + VERSION=15.28.2.8 2.9 + SHORT_DESC="Intel PRO/Wireless 3945ABG/BG firmware." 2.10 + WEB_SITE="http://www.intellinuxwireless.org/?n=Downloads" 2.11 + WGET_URL="http://www.intellinuxwireless.org/iwlwifi/downloads/$MODULE-ucode-$VERSION.tgz" 2.12 + ;; 2.13 +iwlwifi-4965) 2.14 + VERSION=228.57.2.23 2.15 + SHORT_DESC="Intel WiFi Link 4965AGN firmware." 2.16 + WEB_SITE="http://www.intellinuxwireless.org/?n=Downloads" 2.17 + WGET_URL="http://www.intellinuxwireless.org/iwlwifi/downloads/$MODULE-ucode-$VERSION.tgz" 2.18 + ;; 2.19 +iwlwifi-5000) 2.20 + VERSION=5.4.A.11 2.21 + SHORT_DESC="Intel Wireless WiFi Link 5000AGN firmware." 2.22 + WEB_SITE="http://www.intellinuxwireless.org/?n=Downloads" 2.23 + WGET_URL="http://www.intellinuxwireless.org/iwlwifi/downloads/$MODULE-ucode-$VERSION.tgz" 2.24 + ;; 2.25 rt61) 2.26 VERSION=1.2 2.27 SHORT_DESC="RT61 Wireless Lan firmware." 2.28 @@ -86,7 +104,7 @@ 2.29 *rpm) rpm2cpio < $(basename $WGET_URL) | cpio -id;; 2.30 *bz2) tar xjf $(basename $WGET_URL) 2.31 cd $SUBDIR/kmod;; 2.32 -*tar.gz) tar xzf $(basename $WGET_URL);; 2.33 +*tar.gz|*tgz) tar xzf $(basename $WGET_URL);; 2.34 *zip) unzip $(basename $WGET_URL);; 2.35 *o) ;; 2.36 esac 2.37 @@ -99,6 +117,7 @@ 2.38 mv lib/firmware/* $PKG-$VERSION/fs/lib/firmware;; 2.39 rt61) mv RT61_Firmware_V$VERSION/*.bin $PKG-$VERSION/fs/lib/firmware;; 2.40 rt73) mv RT73_Linux_STA_Drv$VERSION/Module/rt73.bin $PKG-$VERSION/fs/lib/firmware;; 2.41 +iwlwifi*) mv iwlwifi*/iwlwifi*.ucode $PKG-$VERSION/fs/lib/firmware;; 2.42 esac 2.43 2.44 # Creat receipt 2.45 @@ -133,7 +152,7 @@ 2.46 sed -i s/'WIFI="no"'/'WIFI="yes"'/ $ROOT/etc/network.conf 2.47 2.48 # Load module 2.49 -if [ -z "$ROOT" ]; then 2.50 +if [ -z "$ROOT" -a -n "$(modprobe -l $MODULE)" ]; then 2.51 echo "Loading module: $MODULE..." 2.52 if modprobe $MODULE ; then 2.53 sleep 2