From 2ae1bef96db491e7a2e8f4d721e231a2aa3aca0f Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 7 Aug 2012 16:09:23 +0000 Subject: [PATCH] isc-dhcp: only run on requested interfaces (#11008) SVN-Revision: 33049 --- net/isc-dhcp/Makefile | 2 +- net/isc-dhcp/files/dhcpd.init | 6 +++--- net/isc-dhcp/files/dhcpd6.init | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/net/isc-dhcp/Makefile b/net/isc-dhcp/Makefile index 68f96f255..798ee322c 100644 --- a/net/isc-dhcp/Makefile +++ b/net/isc-dhcp/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=isc-dhcp UPSTREAM_NAME:=dhcp PKG_VERSION:=4.2.4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(UPSTREAM_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/$(PKG_VERSION) diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init index b34d79848..16ef6ae30 100644 --- a/net/isc-dhcp/files/dhcpd.init +++ b/net/isc-dhcp/files/dhcpd.init @@ -10,9 +10,9 @@ start() { if [ ! -e $lease_file ]; then touch $lease_file fi - - /usr/sbin/dhcpd -q -cf $config_file -lf $lease_file -pf $pid_file - + + /usr/sbin/dhcpd -q -cf $config_file -lf $lease_file -pf $pid_file $dhcp_ifs + if [ $? -ne 0 ]; then return 1 fi diff --git a/net/isc-dhcp/files/dhcpd6.init b/net/isc-dhcp/files/dhcpd6.init index e52f7cfdd..e38e38b8a 100644 --- a/net/isc-dhcp/files/dhcpd6.init +++ b/net/isc-dhcp/files/dhcpd6.init @@ -10,9 +10,9 @@ start() { if [ ! -e $lease_file ]; then touch $lease_file fi - - /usr/sbin/dhcpd -q -6 -cf $config_file -lf $lease_file -pf $pid_file - + + /usr/sbin/dhcpd -q -6 -cf $config_file -lf $lease_file -pf $pid_file $dhcp_ifs + if [ $? -ne 0 ]; then return 1 fi -- 2.30.2