X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8d609d467ac1ccd3be4ee79b7e74148f87ded2f8..841e5a0f16d54f9548f83f30c8b4efd736a3af12:/package/dnsmasq/files/S50dnsmasq diff --git a/package/dnsmasq/files/S50dnsmasq b/package/dnsmasq/files/S50dnsmasq index c97096054..17e331fac 100755 --- a/package/dnsmasq/files/S50dnsmasq +++ b/package/dnsmasq/files/S50dnsmasq @@ -1,5 +1,7 @@ #!/bin/sh . /etc/functions.sh +. /etc/network.overrides +[ "$FAILSAFE" != "true" -a -e /etc/config/network ] && . /etc/config/network # interface to use for DHCP iface=lan @@ -23,6 +25,6 @@ udhcpc -n -q -R -s /bin/true -i $ifname >&- || { wanproto=$(nvram get wan_proto) [ -z "$wanproto" -o "$wanproto" = "none" ] || wanif=$(nvram get wan_ifname) - args="-l /tmp/dhcp.leases -K -F $(int2ip $start),$(int2ip $end),$(int2ip $netmask),12h ${wanif:+-I ${wanif} }" + args="-K -F $(int2ip $start),$(int2ip $end),$(int2ip $netmask),12h ${wanif:+-I ${wanif} }" } dnsmasq ${args}