Fix wpa_supplicant to find wireless interfaces on newer kernels.
Fixes #176.
This commit is contained in:
parent
9907c90552
commit
889b317ac6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user