From f2ef7cc8af1a7a983c90355c47df7d4b361bb600 Mon Sep 17 00:00:00 2001 From: Vasilis Tsiligiannis Date: Sun, 8 Aug 2010 10:53:28 +0000 Subject: dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720) SVN-Revision: 22528 --- package/dnsmasq/files/dnsmasq.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'package/dnsmasq/files') diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 010c54c..fac2d8a 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -97,7 +97,7 @@ dnsmasq() { [ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers config_get leasefile $cfg leasefile - [ -e "$leasefile" ] || touch "$leasefile" + [ -n "$leasefile" ] && ([ -e "$leasefile" ] || touch "$leasefile") config_get_bool cachelocal "$cfg" cachelocal 1 config_get hostsfile "$cfg" dhcphostsfile -- cgit v1.1