What changed in rc.d infrastructure in last months?
NGie Cooper
yaneurabeya at gmail.com
Sun Oct 25 20:09:06 UTC 2015
> On Oct 25, 2015, at 12:58, NGie Cooper <yaneurabeya at gmail.com> wrote:
>
>
>> On Oct 25, 2015, at 12:54, NGie Cooper <yaneurabeya at gmail.com> wrote:
>
> ...
>
>> I’ll need to double-check the rcorder and get back to you on that.
>
> Answering this part: nope. devd still gets started after netif on my branch, so it’ll still start hostapd twice:
>
> $ rcorder `make -VFILES SRCCONF=/dev/null`
> growfs
> ...
> netif
> devd
> ...
> $
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 understand why it was done this way instead of just creating additional variables for `hostapd_<foo>`, similar to `ifconfig_<foo>` (other than maybe, it simplified things because `_ifconfig_getargs` could be used to grab the variables from `ifconfig_<foo>` — but it seems like a kludge to me).
I’d need to boot up FreeBSD on one of my PC laptops to confirm what the behavior is (the earliest I will likely be able to do this is later on today).
$ grep -r hostap sbin/ifconfig/
sbin/ifconfig/ifconfig.8:.Cm hostap ),
sbin/ifconfig/ifconfig.8:.Cm hostap
sbin/ifconfig/ifconfig.8:.Xr hostapd 8
$
Thanks,
-NGie
More information about the freebsd-current
mailing list