diff options
author | Joe Maloney <jpm820@gmail.com> | 2016-10-13 23:09:22 -0400 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2016-10-16 11:10:57 -0500 |
commit | c44c904a61418189c989e978b0237e5b161263ef (patch) | |
tree | c3531ec5972adc69fbf640e520128194a9568a9f | |
parent | 78146b0e14cb57dda8a3aed3d4f8d6b1db7a3c7e (diff) |
init.d.misc/wpa_supplicant: find wireless interface for FreeBSD
This fixes #101.
-rw-r--r-- | init.d.misc/wpa_supplicant.in | 5 |
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 | \ |