init.d.misc/wpa_supplicant: find wireless interface for FreeBSD
This fixes #101.
This commit is contained in:
parent
78146b0e14
commit
c44c904a61
@ -39,6 +39,11 @@ find_wireless()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
FreeBSD)
|
||||||
|
for iface in $(sysctl -b net.wlan.devices 2>/dev/null); do
|
||||||
|
echo "${iface##*/}"
|
||||||
|
done
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do
|
for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do
|
||||||
if ifconfig "${iface##*/}" 2>/dev/null | \
|
if ifconfig "${iface##*/}" 2>/dev/null | \
|
||||||
|
Loading…
Reference in New Issue
Block a user