dnsmasq: fix logic for creating missing files

SVN-Revision: 25540
This commit is contained in:
Felix Fietkau 2011-02-14 19:42:53 +00:00
parent a8850efe9e
commit 47310844bc
1 changed files with 2 additions and 2 deletions

View File

@ -100,10 +100,10 @@ dnsmasq() {
config_get DOMAIN "$cfg" domain
config_get_bool readethers "$cfg" readethers
[ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers
[ "$readethers" = "1" -a \! -e "/etc/ethers" ] && touch /etc/ethers
config_get leasefile $cfg leasefile
[ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile"
[ -n "$leasefile" -a \! -e "$leasefile" ] && touch "$leasefile"
config_get_bool cachelocal "$cfg" cachelocal 1
config_get hostsfile "$cfg" dhcphostsfile