Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Oct 2015 13:09:03 -0700
From:      NGie Cooper <yaneurabeya@gmail.com>
To:        lev@FreeBSD.org
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: What changed in rc.d infrastructure in last months?
Message-ID:  <731AEB43-6519-4FC4-A115-E45FCFAE8F72@gmail.com>
In-Reply-To: <562C2E44-DA31-450F-B867-607047697EFE@gmail.com>
References:  <16610120144.20151025222025@serebryakov.spb.ru> <DA78289A-176E-44EF-A2A2-1CEE10DF54ED@gmail.com> <28FF29D6-A2D9-46C0-A419-DB433BB9F54A@gmail.com> <606144753.20151025224636@serebryakov.spb.ru> <BDF13153-4947-49C4-8AD8-D6F82368563C@gmail.com> <562C2E44-DA31-450F-B867-607047697EFE@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


> On Oct 25, 2015, at 12:58, NGie Cooper <yaneurabeya@gmail.com> wrote:
> 
> 
>> On Oct 25, 2015, at 12:54, NGie Cooper <yaneurabeya@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


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?731AEB43-6519-4FC4-A115-E45FCFAE8F72>