wok-next rev 1935
get-wifi-firmware: add rt61 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 26 18:08:09 2008 +0000 (2008-12-26) |
parents | 12e74c4517b2 |
children | 1f488899d7f8 |
files | get-wifi-firmware/receipt get-wifi-firmware/stuff/get-wifi-firmware |
line diff
1.1 --- a/get-wifi-firmware/receipt Thu Dec 25 22:53:06 2008 +0100 1.2 +++ b/get-wifi-firmware/receipt Fri Dec 26 18:08:09 2008 +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 rt73 ; do 1.8 + for i in b43 b43legacy ipw2100 ipw2200 rt61 rt73 ; do 1.9 ln -s $PACKAGE $fs/usr/bin/get-$i-firmware 1.10 done 1.11 }
2.1 --- a/get-wifi-firmware/stuff/get-wifi-firmware Thu Dec 25 22:53:06 2008 +0100 2.2 +++ b/get-wifi-firmware/stuff/get-wifi-firmware Fri Dec 26 18:08:09 2008 +0000 2.3 @@ -35,6 +35,12 @@ 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 +rt61) 2.8 + VERSION=1.2 2.9 + SHORT_DESC="RT61 Wireless Lan firmware." 2.10 + WEB_SITE="http://www.ralinktech.com/" 2.11 + WGET_URL="http://www.ralinktech.com.tw/data/RT61_Firmware_V$VERSION.zip" 2.12 + ;; 2.13 rt73) 2.14 VERSION=1.0.3.6 2.15 SHORT_DESC="RT73(RT2571W) Wireless Lan firmware." 2.16 @@ -81,6 +87,7 @@ 2.17 *bz2) tar xjf $(basename $WGET_URL) 2.18 cd $SUBDIR/kmod;; 2.19 *tar.gz) tar xzf $(basename $WGET_URL);; 2.20 +*zip) unzip $(basename $WGET_URL);; 2.21 *o) ;; 2.22 esac 2.23 2.24 @@ -90,6 +97,7 @@ 2.25 b43*) b43-fwcutter -w "$PKG-$VERSION/fs/lib/firmware" $FWSET;; 2.26 ipw*) rm -f lib/firmware/*LICENSE* 2.27 mv lib/firmware/* $PKG-$VERSION/fs/lib/firmware;; 2.28 +rt61) mv RT61_Firmware_V$VERSION/$PKG-$VERSION/fs/lib/firmware;; 2.29 rt73) mv RT73_Linux_STA_Drv$VERSION/Module/rt73.bin $PKG-$VERSION/fs/lib/firmware;; 2.30 esac 2.31 2.32 @@ -121,14 +129,15 @@ 2.33 fi 2.34 fi 2.35 2.36 +# Configure /etc/network.conf and start connexion 2.37 +sed -i s/'WIFI="no"'/'WIFI="yes"'/ $ROOT/etc/network.conf 2.38 + 2.39 # Load module 2.40 if [ -z "$ROOT" ]; then 2.41 echo "Loading module: $MODULE..." 2.42 - modprobe $MODULE 2.43 - sleep 1 2.44 + if modprobe $MODULE ; then 2.45 + sleep 2 2.46 + /etc/init.d/network.sh restart 2.47 + fi 2.48 fi 2.49 2.50 -# Configure /etc/network.conf and start connexion 2.51 -sed -i s/'WIFI="no"'/'WIFI="yes"'/ $ROOT/etc/network.conf 2.52 -[ -z "$ROOT" ] && /etc/init.d/network.sh restart 2.53 -