if readethers is set to true make sure /etc/ethers exists, closes #6740
authorTravis Kemen <thepeople@openwrt.org>
Sun, 14 Mar 2010 21:33:02 +0000 (21:33 +0000)
committerTravis Kemen <thepeople@openwrt.org>
Sun, 14 Mar 2010 21:33:02 +0000 (21:33 +0000)
SVN-Revision: 20220

package/dnsmasq/files/dnsmasq.init

index 64eededba5e3538a3eaa8e6670a23b3959c329d2..d796f2269ab4490a0a639adbce2de94f6e76d5d7 100644 (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