diff options
author | Travis Kemen <thepeople@openwrt.org> | 2010-03-14 21:33:02 +0000 |
---|---|---|
committer | Travis Kemen <thepeople@openwrt.org> | 2010-03-14 21:33:02 +0000 |
commit | 3a13fb95abd5ccd0f3373d255ef06572e9b11d8c (patch) | |
tree | 9bd48fde2a4af708d7c01a72bffb60b86284fc70 | |
parent | 6aca925ca80969382b943ddb401dd1238d815554 (diff) | |
download | mtk-20170518-3a13fb95abd5ccd0f3373d255ef06572e9b11d8c.zip mtk-20170518-3a13fb95abd5ccd0f3373d255ef06572e9b11d8c.tar.gz mtk-20170518-3a13fb95abd5ccd0f3373d255ef06572e9b11d8c.tar.bz2 |
if readethers is set to true make sure /etc/ethers exists, closes #6740
SVN-Revision: 20220
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 64eeded..d796f22 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 |