init.d.misc/wpa_supplicant: find wireless interface for FreeBSD

This fixes #101.
This commit is contained in:
Joe Maloney 2016-10-13 23:09:22 -04:00 committed by William Hubbs
parent 78146b0e14
commit c44c904a61

View File

@ -39,6 +39,11 @@ find_wireless()
fi
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
if ifconfig "${iface##*/}" 2>/dev/null | \