X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/38ba799c0a985f6d42e7b6ab41f3f7353d662cad..ec7012225069852a70bd122fa2d887730c198025:/package/dnsmasq/files/dnsmasq.init diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 442550450..1a2461263 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -63,6 +63,9 @@ dnsmasq() { append_parm "$cfg" "local" "-S" append_parm "$cfg" "leasefile" "-l" append_parm "$cfg" "resolvfile" "-r" + + config_get leasefile $cfg leasefile + [ -e "$leasefile" ] || touch "$leasefile" } dhcp_subscrid_add() { @@ -231,7 +234,6 @@ dhcp_option_add() { start() { include /lib/network scan_interfaces - config_load /var/state/network config_load dhcp args=""