mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
dnsmasq: fix logic for creating missing files
SVN-Revision: 25540
This commit is contained in:
parent
a8850efe9e
commit
47310844bc
@ -100,10 +100,10 @@ dnsmasq() {
|
|||||||
config_get DOMAIN "$cfg" domain
|
config_get DOMAIN "$cfg" domain
|
||||||
|
|
||||||
config_get_bool readethers "$cfg" readethers
|
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
|
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_bool cachelocal "$cfg" cachelocal 1
|
||||||
|
|
||||||
config_get hostsfile "$cfg" dhcphostsfile
|
config_get hostsfile "$cfg" dhcphostsfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user