hostapd revision 225736
1#!/bin/sh 2# 3# $FreeBSD: stable/9/etc/rc.d/hostapd 180563 2008-07-16 19:22:48Z dougb $ 4# 5 6# PROVIDE: hostapd 7# REQUIRE: mountcritremote 8# KEYWORD: nojail shutdown 9 10. /etc/rc.subr 11 12name="hostapd" 13command="/usr/sbin/${name}" 14rcvar=`set_rcvar` 15 16conf_file="/etc/${name}.conf" 17pidfile="/var/run/${name}.pid" 18 19command_args="-P ${pidfile} -B ${conf_file}" 20required_files="${conf_file}" 21required_modules="wlan_xauth wlan_wep wlan_tkip wlan_ccmp" 22extra_commands="reload" 23 24load_rc_config ${name} 25run_rc_command "$1" 26