[patch] rc support for multiple hostapd instances

John Nielsen lists at jnielsen.net
Wed Feb 16 16:44:54 UTC 2011


I've been tinkering with various wireless setups recently, one of which required running WPA on two hostap virtual access points. I was surprised to see that support for this is not already present in our rc infrastructure. Running multiple instances of hostapd works just fine, so I hacked together the following. It add support for a new rc variable hostapd_conf_files, which defaults to only "/etc/hostapd.conf" but may contain a list of files. An instance of hostapd is started for each file in the list. For testing I have used

hostapd_conf_files="/etc/hostapd.conf /etc/hostapd2.conf"

in /etc/rc.conf.

Any suggestions or concerns? I would love to see this or something like it committed. I have not yet written a patch for rc.conf.5 but would be happy to.

JN

-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi-hostap.patch
Type: application/octet-stream
Size: 1350 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20110216/f90d56b4/multi-hostap.obj
-------------- next part --------------




More information about the freebsd-rc mailing list