]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
hostap detections also match to cardbus cards.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 7 Jan 2010 00:24:11 +0000 (01:24 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 7 Jan 2010 00:24:11 +0000 (01:24 +0100)
src/initscripts/init.d/hostapd

index 0cc95b7b4272240ffa3f9237b1a8360abf01a973..9a400823d989da9530e73fe471d2fd758c0d44ff 100644 (file)
@@ -40,8 +40,7 @@ case "${1}" in
                elif [ -e "/sys/class/net/$INTERFACE/madwifi_name_type" ]; then
                        DRIVER="MADWIFI"
                        driver="madwifi"
-               elif [ "$(/bin/grep hostap_pci /sys/class/net/$INTERFACE/uevent)" != "" ]; then
-               #PHYSDEVDRIVER=hostap_pci
+               elif [ "$(/bin/grep hostap /sys/class/net/$INTERFACE/uevent)" != "" ]; then
                        DRIVER="HOSTAP"
                        driver="hostap"
                else
@@ -70,7 +69,7 @@ case "${1}" in
                elif [ "$DRIVER" == "HOSTAP" ]; then
                        if [ "$(/usr/sbin/iwconfig $INTERFACE | /bin/grep "Mode:Master")" == "" ]; then
                                boot_mesg "Setting HOSTAP wlan $INTERFACE to Master mode... "
-                               # Set Prism 2.4 Cards to master mode
+                               # Set Prism Cards to master mode
                                /usr/bin/iwconfig $INTERFACE mode master > /dev/null
                        fi
                fi