- Add a startup script for hostapd.

- Document associated variable in rc.conf(5).

Approved by:	dougb
MFC after:	1 week
This commit is contained in:
Florent Thoumie 2006-02-03 01:35:36 +00:00
parent df7418f32f
commit b03bfd3552
4 changed files with 32 additions and 2 deletions

View File

@ -184,6 +184,7 @@ ppp_profile="papchap" # Which profile to use from /etc/ppp/ppp.conf.
ppp_user="root" # Which user to run ppp as
### Network daemon (miscellaneous) ###
hostapd_enable="NO" # Run hostap daemon.
syslogd_enable="YES" # Run syslog daemon (or NO).
syslogd_program="/usr/sbin/syslogd" # path to syslogd, if you want a different one.
syslogd_flags="-s" # Flags to syslogd (if enabled).

View File

@ -12,7 +12,7 @@ FILES= DAEMON LOGIN NETWORKING SERVERS \
fsck ftpd \
gbde geli geli2 \
hcsecd \
hostname \
hostapd hostname \
ike \
inetd initrandom \
ip6addrctl ip6fw ipfilter ipfs ipfw ipmon \

22
etc/rc.d/hostapd Normal file
View File

@ -0,0 +1,22 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: hostapd
# REQUIRE: mountcritremote
# KEYWORD: nojail shutdown
. /etc/rc.subr
name="hostapd"
command="/usr/sbin/${name}"
rcvar=`set_rcvar`
conf_file="/etc/${name}.conf"
command_args="-B ${conf_file}"
required_files="${conf_file}"
load_rc_config ${name}
run_rc_command "$1"

View File

@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd January 21, 2006
.Dd February 3, 2006
.Dt RC.CONF 5
.Os
.Sh NAME
@ -347,6 +347,13 @@ into individual filenames.
The default is a space.
It is not necessary to change this unless there are startup scripts with names
containing spaces.
.It Va hostapd_enable
.Pq Vt bool
Set to
.Dq Li YES
to start
.Xr hostapd 8
at system boot time.
.It Va hostname
.Pq Vt str
The fully qualified domain name (FQDN) of this host on the network.