Merge from vendor branch GDB:
[dragonfly.git] / etc / rc.d / hostapd
1 #!/bin/sh
2 #
3 # $FreeBSD: src/etc/rc.d/hostapd,v 1.1 2006/02/03 01:35:36 flz Exp $
4 # $DragonFly: src/etc/rc.d/hostapd,v 1.1 2007/07/04 16:28:45 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
19 command_args="-B ${conf_file}"
20 required_files="${conf_file}"
21
22 load_rc_config ${name}
23 run_rc_command "$1"