mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
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
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user