if readethers is set to true make sure /etc/ethers exists, closes #6740

SVN-Revision: 20220
lede-17.01
Travis Kemen 2010-03-14 21:33:02 +00:00
parent 6aca925ca8
commit 3a13fb95ab
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ dnsmasq() {
config_get DOMAIN "$cfg" domain config_get DOMAIN "$cfg" domain
config_get_bool readethers "$cfg" readethers
[ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers
config_get leasefile $cfg leasefile config_get leasefile $cfg leasefile
[ -e "$leasefile" ] || touch "$leasefile" [ -e "$leasefile" ] || touch "$leasefile"
config_get_bool cachelocal "$cfg" cachelocal 1 config_get_bool cachelocal "$cfg" cachelocal 1