summaryrefslogtreecommitdiff
path: root/net/dhcprelay/files
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-09-20 19:01:46 +0000
committerJohn Marino <marino@FreeBSD.org>2014-09-20 19:01:46 +0000
commit788fbfbdc64d567826140f91098a070dc5f080ac (patch)
treefd76d382836cbfd131956c0d3744d5b2cdcbdb1a /net/dhcprelay/files
parent- Update to version 0.8 (diff)
net/dhcprelay: Fix RC script
PR: 192994 Submitted by: Denys Razumov Approved by: maintainer timeout (~1 month)
Notes
Notes: svn path=/head/; revision=368675
Diffstat (limited to 'net/dhcprelay/files')
-rw-r--r--net/dhcprelay/files/dhcprelay.in13
1 files changed, 6 insertions, 7 deletions
diff --git a/net/dhcprelay/files/dhcprelay.in b/net/dhcprelay/files/dhcprelay.in
index f8288f8ab180..89fd3fd55659 100644
--- a/net/dhcprelay/files/dhcprelay.in
+++ b/net/dhcprelay/files/dhcprelay.in
@@ -15,16 +15,15 @@
. /etc/rc.subr
name=dhcprelay
-rcvar=dhcprelay_enable
+rcvar=${name}_enable
+
+load_rc_config ${name}
+
+: ${dhcprelay_enable="NO"}
+: ${dhcprelay_ifaces=""}
pidfile=/var/run/${name}.pid
command=%%PREFIX%%/bin/${name}
command_args="${dhcprelay_ifaces} ${dhcprelay_server}"
-# echo $rc_flags
-
-load_rc_config ${name}
-
-dhcprelay_enable=${dhcprelay_enable:-"NO"}
-
run_rc_command "$1"