Resync patch with contrib.
[dragonfly.git] / etc / rc.d / hostapd
blobf2221adb887cf1ae054282b6918154bc7053a61b
1 #!/bin/sh
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 $
7 # PROVIDE: hostapd
8 # REQUIRE: mountcritremote
9 # KEYWORD: nojail shutdown
11 . /etc/rc.subr
13 name="hostapd"
14 command="/usr/sbin/${name}"
15 rcvar=`set_rcvar`
17 conf_file="/etc/${name}.conf"
19 command_args="-B ${conf_file}"
20 required_files="${conf_file}"
22 load_rc_config ${name}
23 run_rc_command "$1"