remove symlink
[openwrt.git] / package / dnsmasq / files / dnsmasq.init
index 4425504..1a24612 100644 (file)
@@ -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=""
This page took 0.023838 seconds and 4 git commands to generate.