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

Jean-Christophe jc.sid at free.fr
Fri Oct 10 18:54:42 UTC 2008


Here is a suggestion to make function.sh detect if ath_pci is present:

--- 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" >&2


regards
Jean-Christophe



More information about the Debian-eeepc-devel mailing list