summaryrefslogtreecommitdiff
path: root/net/wired/files/wired.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/wired/files/wired.sh.in')
-rw-r--r--net/wired/files/wired.sh.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/net/wired/files/wired.sh.in b/net/wired/files/wired.sh.in
new file mode 100644
index 000000000000..e902407f064b
--- /dev/null
+++ b/net/wired/files/wired.sh.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# PROVIDE: wired
+# REQUIRE:
+#
+# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# wired_enable (bool): Set to NO by default.
+# Set it to YES to enable wired.
+#
+
+. %%RC_SUBR%%
+
+name="wired"
+rcvar=${name}_enable
+
+pidfile=%%PREFIX%%/wired/wired.pid
+command=%%PREFIX%%/sbin/${name}
+
+load_rc_config $name
+
+: ${wired_enable="NO"}
+
+command_args=""
+
+run_rc_command "$1"