kernel - fix bug in objcache_destroy()
[dragonfly.git] / etc / rc.d / hostapd
blob30d513c446bed877ec434954f5fce882c91bdf08
1 #!/bin/sh
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 $
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"
18 pidfile="/var/run/${name}.pid"
20 command_args="-P ${pidfile} -B ${conf_file}"
21 required_files="${conf_file}"
22 extra_commands="reload"
24 load_rc_config ${name}
25 run_rc_command "$1"