From cf1cf9a8fd5cd9f07543d4e81c1e73caf70ace67 Mon Sep 17 00:00:00 2001 From: Travis Kemen Date: Thu, 14 Feb 2008 21:17:14 +0000 Subject: [PATCH] create the dhcp leasefile if it doesn't exist SVN-Revision: 10460 --- package/dnsmasq/files/dnsmasq.init | 3 +++ 1 file changed, 3 insertions(+) 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() { -- 2.25.1