From: Florian Fainelli Date: Tue, 7 Aug 2012 16:09:23 +0000 (+0000) Subject: isc-dhcp: only run on requested interfaces (#11008) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2ae1bef96db491e7a2e8f4d721e231a2aa3aca0f;p=openwrt%2Fsvn-archive%2Fpackages.git isc-dhcp: only run on requested interfaces (#11008) SVN-Revision: 33049 --- 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