mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-23 18:03:51 +08:00
init.d.misc/wpa_supplicant: find wireless interface for FreeBSD
This fixes #101.
This commit is contained in:
parent
78146b0e14
commit
c44c904a61
@ -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 | \
|
||||
|
Loading…
Reference in New Issue
Block a user