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

Adrian Chadd adrian.chadd at gmail.com
Sun Apr 17 13:25:57 UTC 2011


On 17 April 2011 15:09, Bernhard Schmidt <bschmidt at freebsd.org> wrote:


> Given that hostapd needs to be started with a configuration file as an
> argument and not an interface like wpa_supplicant you need to add a way
> to add multiple configuration files. The conf_file variable is
> currently hard-coded to /etc/hostapd.conf, if you add another one like
> hostapd_conf_files="" and iterate over it, that should do the trick.
>
> But I'm not sure how to handle the pidfile, or how to name it..
>
> I was thinking of say:

hostapd_instances="a b c"
hostapd_a_conf="/etc/hostapd.wlan0.conf"
hostapd_a_flags="-B -p /var/run/hostapd.wlan0.pid"
hostapd_a_cmd="/usr/sbin/hostapd"

hostapd_b_conf="/etc/hostapd.wlan1.conf"
hostapd_b_flags="-B -p /var/run/hostapd.wlan1.pid"
hostapd_b_cmd="/usr/sbin/hostapd"

It's not terribly automagic, but it'll work well enough to run multiple
hostapds.

How's that sound?


Adrian

> What do people think? I'm happy to script it up and get it committed to
> > -HEAD, but I'd rather sort out the 'what' first before I spend time doing
> rc
> > script hackery.
> >
> > Thanks,
> >
> >
> > adrian
> > _______________________________________________
> > freebsd-wireless at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless
> > To unsubscribe, send any mail to "
> freebsd-wireless-unsubscribe at freebsd.org"
> >
>
> --
> Bernhard
>


More information about the freebsd-wireless mailing list