What changed in rc.d infrastructure in last months?

John Baldwin jhb at freebsd.org
Mon Oct 26 18:04:04 UTC 2015


On Monday, October 26, 2015 04:38:21 AM Adrian Chadd wrote:
> On 26 October 2015 at 01:27, Lev Serebryakov <lev at freebsd.org> wrote:
> > Hello NGie,
> >
> > Sunday, October 25, 2015, 11:09:03 PM, you wrote:
> >
> >
> >> Ok, this is really not making sense from a design perspective.
> >> `ifconfig_<foo>` is being overloaded for starting up hostap’s (even though
> >> ifconfig itself doesn’t support hostap — only `wlanmode ap`). I don’t
> >  ifconfig doesn't support dhcp either, but dhclient is run via "DHCP" in
> >  `ficonfig_<foo>`
> >
> >> understand why it was done this way instead of just creating additional
> >> variables for `hostapd_<foo>`
> >  Long time ago there was simple `hostapd_enable` and `hostapd_interfaces` :)
> >  But it doesn't allow to automagically start hostapd for hotplugged (i.e.
> >  USB) interfaces. On the other hand, automatic DHCP on hot-plugged
> >  interfaces have sense and automatic hostapd doesn't, IMHO.
> 
> This sounds like the same issue as double-running wpa_supplicant.
> 
> I thought this was fixed already :( Would someone please figure out a
> cleanish solution to this? I'd really appreciate it.

Note that /etc/pccard_ether bails right away if the interface is marked up
without doing anything.  That is what is supposed to make devd events at
boot get ignored.  (See the initial loop in pccard_ether_start().)

-- 
John Baldwin


More information about the freebsd-current mailing list