diff options
author | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2010-08-08 10:53:28 +0000 |
---|---|---|
committer | Vasilis Tsiligiannis <acinonyx@openwrt.gr> | 2010-08-08 10:53:28 +0000 |
commit | f2ef7cc8af1a7a983c90355c47df7d4b361bb600 (patch) | |
tree | 783b9db04dc5f69c273af6a89483741d5c17bb06 /package/dnsmasq/files | |
parent | 1beef305cf7e2c8c61e3dadb32880c436048a533 (diff) | |
download | mtk-20170518-f2ef7cc8af1a7a983c90355c47df7d4b361bb600.zip mtk-20170518-f2ef7cc8af1a7a983c90355c47df7d4b361bb600.tar.gz mtk-20170518-f2ef7cc8af1a7a983c90355c47df7d4b361bb600.tar.bz2 |
dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720)
SVN-Revision: 22528
Diffstat (limited to 'package/dnsmasq/files')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 2 |
1 files changed, 1 insertions, 1 deletions
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 |