summaryrefslogtreecommitdiff
path: root/package/dnsmasq/files/dnsmasq.init
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/dnsmasq/files/dnsmasq.init
parent44f1ad22c880c4bdeee6813a7470a32fb3c07feb (diff)
downloadmtk-20170518-cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67.zip
mtk-20170518-cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67.tar.gz
mtk-20170518-cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67.tar.bz2
create the dhcp leasefile if it doesn't exist
SVN-Revision: 10460
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-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 62e2f51..1a24612 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() {