NetBSD-5.0.2/etc/rc.d/hostapd

#!/bin/sh
#
# $NetBSD: hostapd,v 1.3 2006/06/02 01:06:16 rpaulo Exp $
#

# PROVIDE: hostapd
# REQUIRE: mountcritremote beforemountlkm

$_rc_subr_loaded . /etc/rc.subr

name="hostapd"
rcvar=$name
command="/usr/sbin/hostapd"
required_files="/etc/hostapd.conf"

load_rc_config $name
run_rc_command "$1"