]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - etc/rc.d/hostapd
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / etc / rc.d / hostapd
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: hostapd
7 # REQUIRE: mountcritremote
8 # KEYWORD: nojail shutdown
9
10 . /etc/rc.subr
11
12 name="hostapd"
13 command="/usr/sbin/${name}"
14 rcvar=`set_rcvar`
15
16 conf_file="/etc/${name}.conf"
17 pidfile="/var/run/${name}.pid"
18
19 command_args="-P ${pidfile} -B ${conf_file}"
20 required_files="${conf_file}"
21 required_modules="wlan_xauth wlan_wep wlan_tkip wlan_ccmp"
22 extra_commands="reload"
23
24 load_rc_config ${name}
25 run_rc_command "$1"