dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720)

SVN-Revision: 22528
This commit is contained in:
Vasilis Tsiligiannis 2010-08-08 10:53:28 +00:00
parent 1beef305cf
commit f2ef7cc8af

View File

@ -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