From c44c904a61418189c989e978b0237e5b161263ef Mon Sep 17 00:00:00 2001 From: Joe Maloney Date: Thu, 13 Oct 2016 23:09:22 -0400 Subject: init.d.misc/wpa_supplicant: find wireless interface for FreeBSD This fixes #101. --- init.d.misc/wpa_supplicant.in | 5 +++++ 1 file changed, 5 insertions(+) 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 | \ -- cgit v1.2.3