aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc/wpa_supplicant.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-07-01 00:24:08 +0100
committerRoy Marples <roy@marples.name>2009-07-01 00:24:08 +0100
commit889b317ac6c12ec14ccfb43a7ef9156470cfa8e3 (patch)
tree91786398dd3be0f1eebb854f2f8089653b2c9080 /init.d.misc/wpa_supplicant.in
parent9907c905524cadc025e78a0400a157d417af0087 (diff)
Fix wpa_supplicant to find wireless interfaces on newer kernels.
Fixes #176.
Diffstat (limited to 'init.d.misc/wpa_supplicant.in')
-rw-r--r--init.d.misc/wpa_supplicant.in4
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