summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-08-08 20:15:09 +0000
committerMike Baker <mbm@openwrt.org>2006-08-08 20:15:09 +0000
commit01c8abbeca68521435a20e8fafdadab8da11932f (patch)
tree7b359997e8f6ee5421462318420861151329eb4c
parentf30ce66b43dfa07e4e403f94c9f27d65d984a9fb (diff)
downloadmtk-20170518-01c8abbeca68521435a20e8fafdadab8da11932f.zip
mtk-20170518-01c8abbeca68521435a20e8fafdadab8da11932f.tar.gz
mtk-20170518-01c8abbeca68521435a20e8fafdadab8da11932f.tar.bz2
fix error if dhcp is disabled
SVN-Revision: 4545
-rw-r--r--openwrt/package/dnsmasq/files/dnsmasq.conf6
1 files changed, 2 insertions, 4 deletions
diff --git a/openwrt/package/dnsmasq/files/dnsmasq.conf b/openwrt/package/dnsmasq/files/dnsmasq.conf
index 43acd85..8a51f84 100644
--- a/openwrt/package/dnsmasq/files/dnsmasq.conf
+++ b/openwrt/package/dnsmasq/files/dnsmasq.conf
@@ -12,15 +12,13 @@ resolv-file=/tmp/resolv.conf
@ifdef dhcp_enable
dhcp-range=@@start@@,@@end@@,@@netmask@@,@@lease@@
+dhcp-authoritative
+dhcp-leasefile=/tmp/dhcp.leases
@endif
@ifdef wan_ifname
except-interface=@@wan_ifname@@
@endif
-# enable dhcp (start,end,netmask,leasetime)
-dhcp-authoritative
-dhcp-leasefile=/tmp/dhcp.leases
-
# use /etc/ethers for static hosts; same format as --dhcp-host
# <hwaddr> <ipaddr>
read-ethers