RFC: supporting multiple hostap instances in /etc/rc.conf

Adrian Chadd adrian at freebsd.org
Tue Apr 19 10:47:25 UTC 2011


Why'd you remove the flags parameter and hard-code them?

2011/4/19 Maciej Milewski <milu at dat.pl>


> One simpler thing for quick running multiple instaces is giving multiple
> configs to the hostapd. Hostapd supports it from around 2005. This would
> run
> one instance of hostapd listening on all interfaces given in config files.
>
> Manual way:
> /usr/sbin/hostapd -P /var/run/hostapd.pid -B /etc/hostapd.conf
> /etc/hostapd2.conf /etc/hostapd3.conf
>
> Attached patch doesn't change default behaviour and adding multiple configs
> into rc.conf:
> hostapd_conf="/etc/hostapd.conf /etc/hostapd2.conf /etc/hostapd3.conf"
> makes it work with more interfaces.
>

Other than that, I think that's ok, but it just feels dirty for some reason.
Perhaps instead, allow the whole command line to be overridden, pid file, -B
and all?


Adrian


More information about the freebsd-wireless mailing list