- 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:
parent
df7418f32f
commit
b03bfd3552
@ -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).
|
||||
|
@ -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
22
etc/rc.d/hostapd
Normal 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"
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user