]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - etc/rc.d/hostapd
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.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 extra_commands="reload"
22
23 load_rc_config ${name}
24 run_rc_command "$1"