projects
/
librecmc
/
librecmc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8850ef
)
dnsmasq: fix logic for creating missing files
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 14 Feb 2011 19:42:53 +0000
(19:42 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 14 Feb 2011 19:42:53 +0000
(19:42 +0000)
SVN-Revision: 25540
package/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/dnsmasq/files/dnsmasq.init
b/package/dnsmasq/files/dnsmasq.init
index 3e194afff83e1bdbd36232edb328fcf6e0840152..cd5a78ae835a9658b3098d526e71158d246e3891 100644
(file)
--- 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
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
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
config_get_bool cachelocal "$cfg" cachelocal 1
config_get hostsfile "$cfg" dhcphostsfile