[package] dnsmasq: Squelch a 'touch' error when no dhcp leases file is defined in config, thanks stsp (#7720)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22528 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
3bad36fbaf
commit
3a4b11a5ef
|
@ -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