[Debian-eeepc-devel] madwifi or ath5k in function.sh

Damyan Ivanov dam at modsoftsys.com
Mon Oct 13 10:29:28 UTC 2008


-=| Jean-Christophe, Mon, Oct 13, 2008 at 11:07:36AM +0200 |=-
> Please somebody update functions.sh while eeepc-acpi-scripts is at 
> present uncompatible with ath5k.
> I am sorry I do not know the way to do it. Below is the suggestion I 
> made and which works perfectly on my 701 with last compat-wireless-old. 
> It just detects if madwifi is installed on the machine and select the 
> right if device and module.
> 
> Thanks, kind regards
> Jean-Christophe
> > --- Desktop/eeepc-acpi-scripts-1.0.8/functions.sh    2008-09-21 
> > 11:49:53.000000000 +0200
> > +++ /usr/share/eeepc-acpi-scripts/functions.sh    2008-10-10 
> > 20:38:42.000000000 +0200
> > @@ -7,8 +7,13 @@
> >          WLAN_IF=ra0
> >          WLAN_MOD=rt2860sta
> >      elif lspci|grep -i 'atheros'|grep -q -i 'wireless'; then
> > -        WLAN_IF=ath0
> > -        WLAN_MOD=ath_pci
> > +    if pcimodules|grep 'ath_pci'; then
> > +            WLAN_IF=ath0
> > +            WLAN_MOD=ath_pci
> > +    else
> > +        WLAN_IF=wlan0
> > +        WLAN_MOD=ath5k
> > +    fi
> >      fi
> >  
> >      echo "Detected WLAN module $WLAN_MOD on $WLAN_IF" >&

Please someone with the madwifi driver, confirm that this works for 
you too.

-- 
dam            JabberID: dam at jabber.minus273.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/attachments/20081013/17120ba7/attachment.pgp 


More information about the Debian-eeepc-devel mailing list