diff options
author | Roy Marples <roy@marples.name> | 2009-07-01 00:24:08 +0100 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2009-07-01 00:24:08 +0100 |
commit | 889b317ac6c12ec14ccfb43a7ef9156470cfa8e3 (patch) | |
tree | 91786398dd3be0f1eebb854f2f8089653b2c9080 /init.d.misc | |
parent | 9907c905524cadc025e78a0400a157d417af0087 (diff) |
Fix wpa_supplicant to find wireless interfaces on newer kernels.
Fixes #176.
Diffstat (limited to 'init.d.misc')
-rw-r--r-- | init.d.misc/wpa_supplicant.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init.d.misc/wpa_supplicant.in b/init.d.misc/wpa_supplicant.in index f678d459..f1d65c5d 100644 --- a/init.d.misc/wpa_supplicant.in +++ b/init.d.misc/wpa_supplicant.in @@ -24,7 +24,9 @@ find_wireless() case "$RC_UNAME" in Linux) for iface in /sys/class/net/*; do - if [ -e "$iface"/wireless ]; then + if [ -e "$iface"/wireless -o \ + -e "$iface"/phy80211 ] + then echo "${iface##*/}" return 0 fi |