From 889b317ac6c12ec14ccfb43a7ef9156470cfa8e3 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 1 Jul 2009 00:24:08 +0100 Subject: [PATCH] Fix wpa_supplicant to find wireless interfaces on newer kernels. Fixes #176. --- init.d.misc/wpa_supplicant.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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