public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/openrc:master commit in: init.d.misc/
@ 2016-10-16 16:13 William Hubbs
  0 siblings, 0 replies; only message in thread
From: William Hubbs @ 2016-10-16 16:13 UTC (permalink / raw
  To: gentoo-commits

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 | \


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-16 16:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-16 16:13 [gentoo-commits] proj/openrc:master commit in: init.d.misc/ William Hubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox