projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3064f16
)
dnsmasq: only enable tftp if the tftp root exists
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 25 Feb 2016 09:24:24 +0000
(09:24 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 25 Feb 2016 09:24:24 +0000
(09:24 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48760
package/network/services/dnsmasq/files/dnsmasq.init
patch
|
blob
|
history
diff --git
a/package/network/services/dnsmasq/files/dnsmasq.init
b/package/network/services/dnsmasq/files/dnsmasq.init
index db342e7c8eb9e55f41281adf82a0bfe9cbe4e8f3..504c4acf4c975848f57e1ed10935f7ffdfc46fc5 100644
(file)
--- a/
package/network/services/dnsmasq/files/dnsmasq.init
+++ b/
package/network/services/dnsmasq/files/dnsmasq.init
@@
-128,7
+128,8
@@
dnsmasq() {
append_bool "$cfg" dbus "--enable-dbus"
append_bool "$cfg" boguspriv "--bogus-priv"
append_bool "$cfg" expandhosts "--expand-hosts"
- append_bool "$cfg" enable_tftp "--enable-tftp"
+ config_get tftp_root "$cfg" "tftp_root"
+ [ -d "$tftp_root" ] && append_bool "$cfg" enable_tftp "--enable-tftp"
append_bool "$cfg" tftp_no_fail "--tftp-no-fail"
append_bool "$cfg" nonwildcard "--bind-dynamic"
append_bool "$cfg" fqdn "--dhcp-fqdn"