freebsd-nq/sbin/devd
Andriy Voskoboinyk 51a3cc6ca4 Fix duplicate wpa_supplicant(8) / hostapd(8) startup with devd(8)
Do not invoke 'wlan_up' function from devd(8) on interface
creation event (an example to create such event:
'ifconfig wlan0 create wlandev rtwn0');
they're typically produced during 'service netif (re)start'
and result in duplicate interface initialization.

From the user side if WPA option is used, this result in messages like:
- /etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
or
- wpa_supplicant already running?  (pid=xxxx).
(for HOSTAP interfaces this race may result in startup failure).

As a side effect, wpa_supplicant(8) / hostapd(8) will not be
invoked when new wlan(4) interface is created manually and
corresponding configuration for it is present in rc.conf(5).

This change does not affect device attach / removal events.

MFC after:	5 days
2019-01-21 04:50:56 +00:00
..
tests devd: correct two warnings 2018-05-23 07:39:02 +00:00
apple.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
asus.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
devd.8 Add history section for devd(8) 2016-10-05 20:04:36 +00:00
devd.cc We don't need shell protection for when we're expanding matches. 2018-09-22 15:32:53 +00:00
devd.conf Fix duplicate wpa_supplicant(8) / hostapd(8) startup with devd(8) 2019-01-21 04:50:56 +00:00
devd.conf.5 Document kernel/signal/crashdump devd(8) notification. 2018-07-20 14:32:36 +00:00
devd.h devd: Move variable declaration to header 2018-05-23 13:48:16 +00:00
devd.hh We don't need shell protection for when we're expanding matches. 2018-09-22 15:32:53 +00:00
devmatch.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
hyperv.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
Makefile Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
parse.y various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
token.l devd: Move variable declaration to header 2018-05-23 13:48:16 +00:00
uath.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
ulpt.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00
zfs.conf Move all devd related configs to sbin/devd/ 2018-08-21 16:51:45 +00:00