diff options
author | Steven Barth <steven@midlink.org> | 2014-08-19 06:00:07 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-08-19 06:00:07 +0000 |
commit | 1245ccd94ca0ce0f94e127da90bc5c5d21a466dc (patch) | |
tree | 0d35acf9dad1287908cd91076f54816ca86fcefb /package/network | |
parent | 6bd169695e5b747d79237ae4b513b97717f0b5f5 (diff) | |
download | upstream-1245ccd94ca0ce0f94e127da90bc5c5d21a466dc.tar.gz upstream-1245ccd94ca0ce0f94e127da90bc5c5d21a466dc.tar.bz2 upstream-1245ccd94ca0ce0f94e127da90bc5c5d21a466dc.zip |
dnsmasq: respect option dhcpv4 disabled in dhcp-config
git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42218 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network')
-rw-r--r-- | package/network/services/dnsmasq/files/dnsmasq.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init index 815f424a66..2ea73af947 100644 --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -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" |