aboutsummaryrefslogtreecommitdiff
path: root/init.d.misc
diff options
context:
space:
mode:
authorJoe Maloney <jpm820@gmail.com>2016-10-13 23:09:22 -0400
committerWilliam Hubbs <w.d.hubbs@gmail.com>2016-10-16 11:10:57 -0500
commitc44c904a61418189c989e978b0237e5b161263ef (patch)
treec3531ec5972adc69fbf640e520128194a9568a9f /init.d.misc
parent78146b0e14cb57dda8a3aed3d4f8d6b1db7a3c7e (diff)
init.d.misc/wpa_supplicant: find wireless interface for FreeBSD
This fixes #101.
Diffstat (limited to 'init.d.misc')
-rw-r--r--init.d.misc/wpa_supplicant.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/init.d.misc/wpa_supplicant.in b/init.d.misc/wpa_supplicant.in
index e7cd12d3..7b7ddc57 100644
--- a/init.d.misc/wpa_supplicant.in
+++ b/init.d.misc/wpa_supplicant.in
@@ -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 | \