dhcp: allow IPv6 to be turned on
authorHeiko Zuerker <smiley73@users.sourceforge.net>
Mon, 25 Apr 2011 13:13:58 +0000 (08:13 -0500)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 25 Apr 2011 18:08:46 +0000 (20:08 +0200)
Signed-off-by: Heiko Zuerker <smiley73@users.sourceforge.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/dhcp/dhcp.mk

index 64472c9e891174ef8986cf0e389ea6709b2b53a0..58fd47c8ad77a1f74850b94ec537f06f641fea07 100644 (file)
@@ -13,8 +13,11 @@ DHCP_CONF_OPT = \
        --with-cli-lease-file=/var/lib/dhcp/dhclient.leases \
        --with-srv-pid-file=/var/run/dhcpd.pid \
        --with-cli-pid-file=/var/run/dhclient.pid \
-       --with-relay-pid-file=/var/run/dhcrelay.pid \
-       --disable-dhcpv6
+       --with-relay-pid-file=/var/run/dhcrelay.pid
+
+ifneq ($(BR2_INET_IPV6),y)
+        DHCP_CONF_OPT += --disable-dhcpv6
+endif
 
 ifeq ($(BR2_PACKAGE_DHCP_SERVER),y)
 define DHCP_INSTALL_SERVER