commit:     c44c904a61418189c989e978b0237e5b161263ef
Author:     Joe Maloney <jpm820 <AT> gmail <DOT> com>
AuthorDate: Fri Oct 14 03:09:22 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Sun Oct 16 16:10:57 2016 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=c44c904a

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 e7cd12d..7b7ddc5 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 | \

Reply via email to