NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: hostapd with two separate interfaces and APs on a single machine?
Hi folks,
it seems to work...
No idea why I had to use hostapd_flags once and command_args on the other file
but this made it work.
I wish a newer NetBSD version would support multiple APs out of the box.
cat /etc/rc.d/hostapd
#!/bin/sh
#
# $NetBSD: hostapd,v 1.3 2006/06/02 01:06:16 rpaulo Exp $
#
# PROVIDE: hostapd
# REQUIRE: mountcritremote beforemountlkm
$_rc_subr_loaded . /etc/rc.subr
name="hostapd"
rcvar=$name
load_rc_config $name
command="/usr/sbin/hostapd"
required_files="/etc/hostapd.conf"
pidfile="/var/run/$name.pid"
hostapd_flags="-B -P /var/run/$name.pid $required_files"
run_rc_command "$1"
------------------------------------------
cat /etc/rc.d/hostapdalfred
#!/bin/sh
#
# $NetBSD: hostapd,v 1.3 2006/06/02 01:06:16 rpaulo Exp $
#
# PROVIDE: hostapdalfred
# REQUIRE: mountcritremote beforemountlkm
# -P
$_rc_subr_loaded . /etc/rc.subr
name="hostapdalfred"
rcvar=$name
command="/usr/sbin/hostapd"
required_files="/etc/hostapdalfred.conf"
pidfile="/var/run/$name.pid"
command_args="-B -P /var/run/$name.pid $required_files"
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index