diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-02-14 19:42:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-02-14 19:42:53 +0000 |
commit | 47310844bc6daae2655786810153ab9880c0feb9 (patch) | |
tree | b0a13b6a8290396ca55a852fbf57d1e3cd20044f /package/dnsmasq/files/dnsmasq.init | |
parent | a8850efe9eee794206c43c36c4e2a8e52cccf3ed (diff) | |
download | mtk-20170518-47310844bc6daae2655786810153ab9880c0feb9.zip mtk-20170518-47310844bc6daae2655786810153ab9880c0feb9.tar.gz mtk-20170518-47310844bc6daae2655786810153ab9880c0feb9.tar.bz2 |
dnsmasq: fix logic for creating missing files
SVN-Revision: 25540
Diffstat (limited to 'package/dnsmasq/files/dnsmasq.init')
-rw-r--r-- | package/dnsmasq/files/dnsmasq.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/dnsmasq/files/dnsmasq.init b/package/dnsmasq/files/dnsmasq.init index 3e194af..cd5a78a 100644 --- a/package/dnsmasq/files/dnsmasq.init +++ b/package/dnsmasq/files/dnsmasq.init @@ -100,10 +100,10 @@ dnsmasq() { config_get DOMAIN "$cfg" domain config_get_bool readethers "$cfg" readethers - [ "$readethers" = "1" ] && [ -e "/etc/ethers" ] || touch /etc/ethers + [ "$readethers" = "1" -a \! -e "/etc/ethers" ] && touch /etc/ethers config_get leasefile $cfg leasefile - [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" + [ -n "$leasefile" -a \! -e "$leasefile" ] && touch "$leasefile" config_get_bool cachelocal "$cfg" cachelocal 1 config_get hostsfile "$cfg" dhcphostsfile |