mirror of https://github.com/hak5/openwrt-owl.git
dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720)
SVN-Revision: 22528owl
parent
1beef305cf
commit
f2ef7cc8af
|
@ -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 New Issue