create the dhcp leasefile if it doesn't exist
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Feb 2008 21:17:14 +0000 (21:17 +0000)
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 14 Feb 2008 21:17:14 +0000 (21:17 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10460 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/dnsmasq/files/dnsmasq.init

index 62e2f51..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() {
This page took 0.029501 seconds and 4 git commands to generate.