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

SVN-Revision: 22528
owl
Vasilis Tsiligiannis 2010-08-08 10:53:28 +00:00
parent 1beef305cf
commit f2ef7cc8af
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ dnsmasq() {
[ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers [ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers
config_get leasefile $cfg leasefile config_get leasefile $cfg leasefile
[ -e "$leasefile" ] || touch "$leasefile" [ -n "$leasefile" ] && ([ -e "$leasefile" ] || touch "$leasefile")
config_get_bool cachelocal "$cfg" cachelocal 1 config_get_bool cachelocal "$cfg" cachelocal 1
config_get hostsfile "$cfg" dhcphostsfile config_get hostsfile "$cfg" dhcphostsfile