Do not try to recreate wlan(4) interface if it already exists.

This should fix error messages caused by devd(8) during startup:

Starting Network: lo0 wlan0.
...
Starting devd.
ifconfig: SIOCS80211: Device busy
wpa_supplicant already running?  (pid=323).

MFC after:	2 weeks
This commit is contained in:
avos 2016-12-04 15:58:34 +00:00
parent 2135ebfb73
commit 0e2c4a5d91

View File

@ -120,6 +120,9 @@ pccard_ether_restart()
pccard_ether_startchildren()
{
for child in `get_if_var $ifn wlans_IF`; do
if ifexists $child; then
continue
fi
/etc/rc.d/netif quietstart $child
done
}