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
|
case "$RC_UNAME" in
|
||||||
Linux)
|
Linux)
|
||||||
for iface in /sys/class/net/*; do
|
for iface in /sys/class/net/*; do
|
||||||
if [ -e "$iface"/wireless ]; then
|
if [ -e "$iface"/wireless -o \
|
||||||
|
-e "$iface"/phy80211 ]
|
||||||
|
then
|
||||||
echo "${iface##*/}"
|
echo "${iface##*/}"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user