Index: etc/rc.d/hostapd =================================================================== RCS file: etc/rc.d/hostapd diff -N etc/rc.d/hostapd --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ etc/rc.d/hostapd 3 Feb 2006 00:37:46 -0000 @@ -0,0 +1,22 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: hostapd +# REQUIRE: mountcritremote +# KEYWORD: nojail + +. /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" Index: etc/rc.d/Makefile =================================================================== RCS file: /home/ncvs/src/etc/rc.d/Makefile,v retrieving revision 1.64 diff -u -r1.64 Makefile --- etc/rc.d/Makefile 2 Feb 2006 10:02:55 -0000 1.64 +++ etc/rc.d/Makefile 3 Feb 2006 00:37:46 -0000 @@ -12,7 +12,7 @@ fsck ftpd \ gbde geli geli2 \ hcsecd \ - hostname \ + hostapd hostname \ ike \ inetd initrandom \ ip6addrctl ip6fw ipfilter ipfs ipfw ipmon \ Index: etc/defaults/rc.conf =================================================================== RCS file: /home/ncvs/src/etc/defaults/rc.conf,v retrieving revision 1.273 diff -u -r1.273 rc.conf --- etc/defaults/rc.conf 2 Feb 2006 10:02:19 -0000 1.273 +++ etc/defaults/rc.conf 3 Feb 2006 00:37:46 -0000 @@ -184,6 +184,7 @@ 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). Index: share/man/man5/rc.conf.5 =================================================================== RCS file: /home/ncvs/src/share/man/man5/rc.conf.5,v retrieving revision 1.283 diff -u -r1.283 rc.conf.5 --- share/man/man5/rc.conf.5 29 Jan 2006 13:35:35 -0000 1.283 +++ share/man/man5/rc.conf.5 3 Feb 2006 00:37:47 -0000 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD: src/share/man/man5/rc.conf.5,v 1.283 2006/01/29 13:35:35 yar Exp $ .\" -.Dd January 21, 2006 +.Dd February 3, 2006 .Dt RC.CONF 5 .Os .Sh NAME @@ -347,6 +347,13 @@ 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.