Re: What changed in rc.d infrastructure in last months?

From: NGie Cooper <yaneurabeya_at_gmail.com>
Date: Sun, 25 Oct 2015 13:09:03 -0700
> 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
Received on Sun Oct 25 2015 - 19:09:06 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:00 UTC