named: conditionally copy files to chroot (rc-script)
[dragonfly.git] / etc / rc.d / hostapd
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/rc.d/hostapd,v 1.2 2007/11/14 21:19:15 brix Exp $
4 # $DragonFly: src/etc/rc.d/hostapd,v 1.2 2008/04/15 18:11:00 swildner Exp $
5 #
6
7 # PROVIDE: hostapd
8 # REQUIRE: mountcritremote
9 # KEYWORD: nojail shutdown
10
11 . /etc/rc.subr
12
13 name="hostapd"
14 command="/usr/sbin/${name}"
15 rcvar=`set_rcvar`
16
17 conf_file="/etc/${name}.conf"
18 pidfile="/var/run/${name}.pid"
19
20 command_args="-P ${pidfile} -B ${conf_file}"
21 required_files="${conf_file}"
22 extra_commands="reload"
23
24 load_rc_config ${name}
25 run_rc_command "$1"