[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-a3cf2f4a3e73
master
Vasilis Tsiligiannis 2010-08-08 10:53:28 +00:00
parent 3bad36fbaf
commit 3a4b11a5ef
1 changed files with 1 additions and 1 deletions

View File

@ -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