aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/rotorouter
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-02-01 03:25:56 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-02-01 03:25:56 +0000
commitfc8c560fac303072c1a99ad7d15a92b8d822a51d (patch)
tree81b9744251cb2d5a5c3894c964962d4673427dc0 /net-mgmt/rotorouter
parent0a2ec00aa646f0ab8f5d4cbbfb70d8661488f304 (diff)
downloadports-fc8c560fac303072c1a99ad7d15a92b8d822a51d.tar.gz
ports-fc8c560fac303072c1a99ad7d15a92b8d822a51d.zip
Notes
Diffstat (limited to 'net-mgmt/rotorouter')
-rw-r--r--net-mgmt/rotorouter/files/rotorouter.in17
1 files changed, 7 insertions, 10 deletions
diff --git a/net-mgmt/rotorouter/files/rotorouter.in b/net-mgmt/rotorouter/files/rotorouter.in
index 775c617bdc61..231d36293558 100644
--- a/net-mgmt/rotorouter/files/rotorouter.in
+++ b/net-mgmt/rotorouter/files/rotorouter.in
@@ -1,14 +1,12 @@
#!/bin/sh
-#
-# $Id$
-#
+# $FreeBSD$
+#
# PROVIDE: rotorouter
-# REQUIRE: DAEMON
-# BEFORE: LOGIN
+# REQUIRE: LOGIN
# KEYWORD: shutdown
#
-# Add the following line to /etc/rc.conf to enable rotorouter:
+# Add the following line to /etc/rc.conf[.local] to enable rotorouter:
#
# rotorouter_enable="YES"
#
@@ -21,12 +19,11 @@ name=rotorouter
rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
+command_args='&'
load_rc_config $name
-rotorouter_enable=${rotorouter_enable:-"NO"}
-rotorouter_flags="${rotorouter_flags:--h %%PREFIX%%/etc/rotorouter.conf}"
-
-rotorouter_flags="${rotorouter_flags} &"
+: ${rotorouter_enable-"NO"}
+: ${rotorouter_flags-"-h %%PREFIX%%/etc/rotorouter.conf"}
run_rc_command "$1"