summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/hostapd
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2006-02-03 01:35:36 +0000
committerflz <flz@FreeBSD.org>2006-02-03 01:35:36 +0000
commit06bbcb2dd7b9a082fb0fad39a3644f5ca5055356 (patch)
tree840525e0caad303df839dc5790cbad036ed9d54f /etc/rc.d/hostapd
parent155414961d2d86d1d240e429382e67a8a8bc5d09 (diff)
downloadFreeBSD-src-06bbcb2dd7b9a082fb0fad39a3644f5ca5055356.zip
FreeBSD-src-06bbcb2dd7b9a082fb0fad39a3644f5ca5055356.tar.gz
- Add a startup script for hostapd.
- Document associated variable in rc.conf(5). Approved by: dougb MFC after: 1 week
Diffstat (limited to 'etc/rc.d/hostapd')
-rw-r--r--etc/rc.d/hostapd22
1 files changed, 22 insertions, 0 deletions
diff --git a/etc/rc.d/hostapd b/etc/rc.d/hostapd
new file mode 100644
index 0000000..b39b971
--- /dev/null
+++ b/etc/rc.d/hostapd
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: hostapd
+# REQUIRE: mountcritremote
+# KEYWORD: nojail shutdown
+
+. /etc/rc.subr
+
+name="hostapd"
+command="/usr/sbin/${name}"
+rcvar=`set_rcvar`
+
+conf_file="/etc/${name}.conf"
+
+command_args="-B ${conf_file}"
+required_files="${conf_file}"
+
+load_rc_config ${name}
+run_rc_command "$1"
OpenPOWER on IntegriCloud