isc-dhcp: only run on requested interfaces (#11008)
authorFlorian Fainelli <florian@openwrt.org>
Tue, 7 Aug 2012 16:09:23 +0000 (16:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Tue, 7 Aug 2012 16:09:23 +0000 (16:09 +0000)
SVN-Revision: 33049

net/isc-dhcp/Makefile
net/isc-dhcp/files/dhcpd.init
net/isc-dhcp/files/dhcpd6.init

index 68f96f25500b4f7b0edc454d1a7c95733e134ebd..798ee322cc7b7baaa2790fa2d9008c5a9340c31a 100644 (file)
@@ -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)
index b34d79848a4cd9318fc3a247437f7965fce135e4..16ef6ae30f33884052adaa7f289a049988c4f7d1 100644 (file)
@@ -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
index e52f7cfdd839b3efb8db81451d032894c82d87c0..e38e38b8aa401b27bd4450f65207dfe3e4c2e818 100644 (file)
@@ -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