From: Travis Kemen Date: Thu, 14 Feb 2008 21:17:14 +0000 (+0000) Subject: create the dhcp leasefile if it doesn't exist X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67;p=openwrt%2Fstaging%2Frmilecki.git create the dhcp leasefile if it doesn't exist SVN-Revision: 10460 --- diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 62e2f51fed4..1a24612633a 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() {