RFC: supporting multiple hostap instances in /etc/rc.conf
Adrian Chadd
adrian.chadd at gmail.com
Sun Apr 17 14:19:23 UTC 2011
On 17 April 2011 22:05, Bernhard Schmidt <bschmidt at freebsd.org> wrote:
> Way to complex for my taste :)
>
> How about
>
> hostapd_enable="YES"
> hostapd_interfaces="wlan0 wlan1 .." # defaults to empty
>
> and then
>
> if [ -n $hostapd_interfaces ]; then
> for interface in $interface; do
> pidfile=/var/run/hostapd/$interface.pid
> conffile=/etc/hostapd-$interface.conf
> ..
> done
> else
> pidfile=/var/run/hostapd.pid
> conffile=/etc/hostapd.conf
> fi
>
>
That sounds fine. Shall we submit a patch to the hostapd rc.d script to
implement that functionality?
Adrian
More information about the freebsd-wireless
mailing list