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:
parent
1beef305cf
commit
f2ef7cc8af
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue