aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2008-02-14 21:17:14 +0000
committerTravis Kemen <thepeople@openwrt.org>2008-02-14 21:17:14 +0000
commitcf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67 (patch)
tree0b3b94cd64ac48c7ef9e712aa0e68e4d5c55146c /package
parent44f1ad22c880c4bdeee6813a7470a32fb3c07feb (diff)
downloadupstream-cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67.tar.gz
upstream-cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67.tar.bz2
upstream-cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67.zip
create the dhcp leasefile if it doesn't exist
SVN-Revision: 10460
Diffstat (limited to 'package')
-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 62e2f51fed..1a24612633 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() {