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

SVN-Revision: 20220
This commit is contained in:
Travis Kemen 2010-03-14 21:33:02 +00:00
parent 6aca925ca8
commit 3a13fb95ab

View file

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