fix error if dhcp is disabled
authorMike Baker <mbm@openwrt.org>
Tue, 8 Aug 2006 20:15:09 +0000 (20:15 +0000)
committerMike Baker <mbm@openwrt.org>
Tue, 8 Aug 2006 20:15:09 +0000 (20:15 +0000)
SVN-Revision: 4545

openwrt/package/dnsmasq/files/dnsmasq.conf

index 43acd85b154f9999c3b710759eadba622df9d412..8a51f8445d6d8786ca0fc2185b48740bb908467b 100644 (file)
@@ -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