mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:23:09 +02:00
dnsmasq: fix logic for creating missing files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25540 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f51d8a8dcb
commit
15fba44a5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user