1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 18:47:37 +03:00

[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
This commit is contained in:
acinonyx 2010-08-08 10:53:28 +00:00
parent 38a075f274
commit d9deabc7be

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