summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-14 21:17:14 +0000
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-02-14 21:17:14 +0000
commit6df5e6f2088d39e117540ab60345b65f32cfeadb (patch)
tree0bde771c321eeb94c8098667b2d4ed85758f5256 /package/dnsmasq
parent2962a817fc0b1d2f54b9edf52bb15b99861e9ae9 (diff)
create the dhcp leasefile if it doesn't exist
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10460 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq')
-rw-r--r--package/dnsmasq/files/dnsmasq.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 62e2f51fe..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() {