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:
Andriy Voskoboinyk 2016-12-04 15:58:34 +00:00
parent bea8daa364
commit 7d3a36a88e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=309534

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
}