dnsmasq: respect option dhcpv4 disabled in dhcp-config
authorSteven Barth <cyrus@openwrt.org>
Tue, 19 Aug 2014 05:58:44 +0000 (05:58 +0000)
committerSteven Barth <cyrus@openwrt.org>
Tue, 19 Aug 2014 05:58:44 +0000 (05:58 +0000)
SVN-Revision: 42216

package/network/services/dnsmasq/files/dnsmasq.init

index 815f424a66e20292df6cc23f90f689cf5e603c45..2ea73af9474fcb7cdbd596bc2aca427b144d1f68 100644 (file)
@@ -373,6 +373,9 @@ dhcp_add() {
        config_get net "$cfg" interface
        [ -n "$net" ] || return 0
 
+       config_get dhcpv4 "$cfg" dhcpv4
+       [ "$dhcpv4" != "disabled" ] || return 0
+
        config_get networkid "$cfg" networkid
        [ -n "$networkid" ] || networkid="$net"