> On Oct 25, 2015, at 12:39, Lev Serebryakov <l...@freebsd.org> wrote: > > Hello NGie, > > Sunday, October 25, 2015, 10:30:47 PM, you wrote: > > >> This [the hostapd start/stop logic] all gets triggered whenever the >> interface goes up and down. > So, first time hostapd is started by /etc/rc.d/netif before devd, and > second time devd call /etc/rc.d/netif again on interface up, am I right? > > It looks weird.
It depends on how it’s setup. Is your interface is using DHCP and are you using the stock devd.conf file? From etc/devd.conf: 55 notify 0 { 56 match "system" "IFNET"; 57 match "type" "LINK_UP"; 58 media-type "ethernet"; 59 action "/etc/rc.d/dhclient quietstart $subsystem"; 60 }; … 74 notify 0 { 75 match "system" "IFNET"; 76 match "type" "LINK_UP"; 77 media-type "802.11"; 78 action "/etc/rc.d/dhclient quietstart $subsystem"; 79 }; Thanks! -NGie _______________________________________________ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"