From 788fbfbdc64d567826140f91098a070dc5f080ac Mon Sep 17 00:00:00 2001 From: John Marino Date: Sat, 20 Sep 2014 19:01:46 +0000 Subject: net/dhcprelay: Fix RC script PR: 192994 Submitted by: Denys Razumov Approved by: maintainer timeout (~1 month) --- net/dhcprelay/Makefile | 2 +- net/dhcprelay/files/dhcprelay.in | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) (limited to 'net/dhcprelay') diff --git a/net/dhcprelay/Makefile b/net/dhcprelay/Makefile index fa6aee0492fc..8427e23bcad8 100644 --- a/net/dhcprelay/Makefile +++ b/net/dhcprelay/Makefile @@ -3,7 +3,7 @@ PORTNAME= dhcprelay PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= http://www.mavetju.org/download/ 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" -- cgit v1.2.3