wpa_supplicant: Fix wlan interface detection on Linux 3.4

Linux 3.4 apparently doesn't have the "wireless" file.
This commit is contained in:
Eelco Dolstra 2013-07-15 13:52:46 +02:00
parent 986e236068
commit 002ffea364

View File

@ -110,7 +110,9 @@ in
''
${if ifaces == [] then ''
for i in $(cd /sys/class/net && echo *); do
if [ -e /sys/class/net/$i/wireless ]; then
DEVTYPE=
source /sys/class/net/$i/uevent
if [ "$DEVTYPE" = "wlan" -o -e /sys/class/net/$i/wireless ]; then
ifaces="$ifaces''${ifaces:+ -N} -i$i"
fi
done