diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2009-07-30 08:16:51 +0800 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2009-07-30 08:16:51 +0800 |
commit | 546baf2352bc0ca7ccbec167306cd3aea9261fd6 (patch) | |
tree | cfb21e734236e55be84d50bca075cedf5e2622d3 | |
parent | dccc9eac15af728239b2281bbea1c19158f8566a (diff) | |
download | freebsd-ports-gnome-546baf2352bc0ca7ccbec167306cd3aea9261fd6.tar.gz freebsd-ports-gnome-546baf2352bc0ca7ccbec167306cd3aea9261fd6.tar.zst freebsd-ports-gnome-546baf2352bc0ca7ccbec167306cd3aea9261fd6.zip |
Fix bug in rcNG script for restart action.
Approved by: itetcu@ (mentor)
-rw-r--r-- | net/isc-dhcp31-server/Makefile | 2 | ||||
-rw-r--r-- | net/isc-dhcp31-server/files/isc-dhcpd.in | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/isc-dhcp31-server/Makefile b/net/isc-dhcp31-server/Makefile index a0aad6a84e14..606deb2f68ad 100644 --- a/net/isc-dhcp31-server/Makefile +++ b/net/isc-dhcp31-server/Makefile @@ -19,7 +19,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= jpaetzel@FreeBSD.org COMMENT?= The ISC Dynamic Host Configuration Protocol server -PORTREVISION_SERVER= 0 +PORTREVISION_SERVER= 1 PORTREVISION_CLIENT= 0 PORTREVISION_RELAY= 0 PORTREVISION_DEVEL= 0 diff --git a/net/isc-dhcp31-server/files/isc-dhcpd.in b/net/isc-dhcp31-server/files/isc-dhcpd.in index b01705589f8f..f6c2aefa9370 100644 --- a/net/isc-dhcp31-server/files/isc-dhcpd.in +++ b/net/isc-dhcp31-server/files/isc-dhcpd.in @@ -706,8 +706,9 @@ dhcpd_checkconfig () setup_flags rc_flags_mod="$rc_flags" # Eliminate '-q' flag if it is present + echo $rc_flags case "$rc_flags" in - "-q") rc_flags_mod=`echo "$(rc_flags)" | sed -Ee 's/(^-q|-q|-q$)'//` ;; + *-q*) rc_flags_mod=`echo "$(rc_flags)" | sed -Ee 's/(^-q | -q | -q$)'//` ;; esac if ! ${command} -t -q ${rc_flags_mod}; then err 1 "`${command} -t ${rc_flags_mod}` Configuration file sanity check failed" |