summaryrefslogtreecommitdiffstats
path: root/package/dnsmasq
diff options
context:
space:
mode:
authorthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-14 21:33:02 +0000
committerthepeople <thepeople@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-03-14 21:33:02 +0000
commit1f2f21c1d0e7622655c18ee2cbd76787ffb05360 (patch)
tree8e3b86bec359630ed1f69d55c48edbf405093b20 /package/dnsmasq
parentc37b60f3dcbcf194670137d22ead7e1c0cb4e8c7 (diff)
if readethers is set to true make sure /etc/ethers exists, closes #6740
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20220 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq')
-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 64eededba..d796f2269 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