aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/files/dnsmasq.init
diff options
context:
space:
mode:
authorTravis Kemen <thepeople@openwrt.org>2010-03-14 21:33:02 +0000
committerTravis Kemen <thepeople@openwrt.org>2010-03-14 21:33:02 +0000
commit3a13fb95abd5ccd0f3373d255ef06572e9b11d8c (patch)
tree9bd48fde2a4af708d7c01a72bffb60b86284fc70 /package/dnsmasq/files/dnsmasq.init
parent6aca925ca80969382b943ddb401dd1238d815554 (diff)
downloadupstream-3a13fb95abd5ccd0f3373d255ef06572e9b11d8c.tar.gz
upstream-3a13fb95abd5ccd0f3373d255ef06572e9b11d8c.tar.bz2
upstream-3a13fb95abd5ccd0f3373d255ef06572e9b11d8c.zip
if readethers is set to true make sure /etc/ethers exists, closes #6740
SVN-Revision: 20220
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-rw-r--r--package/dnsmasq/files/dnsmasq.init3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init
index 64eededba5..d796f2269a 100644
--- a/package/dnsmasq/files/dnsmasq.init
+++ b/package/dnsmasq/files/dnsmasq.init
@@ -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