Date: Mon, 18 Apr 2011 13:37:29 +0200 From: Paul Schenkeveld <freebsd@psconsult.nl> To: freebsd-wireless@freebsd.org Subject: Re: RFC: supporting multiple hostap instances in /etc/rc.conf Message-ID: <20110418113729.GA77340@psconsult.nl> In-Reply-To: <BANLkTiku1MPd=n91c7CoiF2CuN1qOW_pAg@mail.gmail.com> References: <BANLkTikGsV7AMYG7GaJ5BN7yUKgugN%2BfBg@mail.gmail.com> <201104170909.44508.bschmidt@freebsd.org> <BANLkTimFRR2TE%2BH5Vop%2BTYms8mP4p4FPBg@mail.gmail.com> <201104171605.59340.bschmidt@freebsd.org> <BANLkTiku1MPd=n91c7CoiF2CuN1qOW_pAg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 17, 2011 at 10:19:21PM +0800, Adrian Chadd wrote:
> On 17 April 2011 22:05, Bernhard Schmidt <bschmidt@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?
Please go for it! I had something cooked up here locally but not nearly
as nice :(
I like the idea of just specifying the interface and let the script
derive hostapd_<instance>_pidfile and hostapd_<instance>_conffile from
the interface but perhaps you could create these intermediate variables
and allow them to be overruled in /etc/rc.conf{,.local}.
Paul Schenkeveld
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110418113729.GA77340>
