aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorFlorian Eckert <Eckert.Florian@googlemail.com>2016-11-30 09:08:21 +0100
committerJohn Crispin <john@phrozen.org>2016-12-04 15:56:04 +0100
commit854459a2f923376e0e509ebc0fb8ff90e9f13c02 (patch)
tree5fc960f6164693bc4be017a181d64137de8c2329 /package/network
parent960c477432475fb672a1c9b696a4419b9b644342 (diff)
downloadupstream-854459a2f923376e0e509ebc0fb8ff90e9f13c02.tar.gz
upstream-854459a2f923376e0e509ebc0fb8ff90e9f13c02.tar.bz2
upstream-854459a2f923376e0e509ebc0fb8ff90e9f13c02.zip
dnsmasq: reload config if host name is modified
If the hostname in /etc/config/system is modified the dnsmasq will not reread the update host file under /tmp/hosts/dhcp.$cfg. Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Diffstat (limited to 'package/network')
-rw-r--r--package/network/services/dnsmasq/files/dnsmasq.init3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index b1f9e2e290..845cf1b5e3 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -785,7 +785,7 @@ dnsmasq_stop()
service_triggers()
{
- procd_add_reload_trigger "dhcp"
+ procd_add_reload_trigger "dhcp" "system"
procd_add_raw_trigger "interface.*" 2000 /etc/init.d/dnsmasq reload
}
@@ -825,6 +825,7 @@ start_service() {
reload_service() {
rc_procd start_service "$@"
+ killall -HUP dnsmasq
return 0
}