summaryrefslogtreecommitdiffstats
path: root/net/radvd/files/radvd.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/radvd/files/radvd.in')
-rw-r--r--net/radvd/files/radvd.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/radvd/files/radvd.in b/net/radvd/files/radvd.in
new file mode 100644
index 0000000..f96b276
--- /dev/null
+++ b/net/radvd/files/radvd.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# PROVIDE: radvd
+# REQUIRE: NETWORKING
+
+#
+# Add the following line to /etc/rc.conf to enable radvd:
+#
+# radvd_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=radvd
+rcvar=`set_rcvar`
+prefix=%%PREFIX%%
+pidfile=/var/run/${name}.pid
+command="${prefix}/sbin/${name}"
+command_args="-p ${pidfile}"
+required_files="${prefix}/etc/${name}.conf"
+
+load_rc_config $name
+: ${radvd_enable="NO"}
+
+run_rc_command "$1"
OpenPOWER on IntegriCloud