[source] dnsmasq: rewrite config on host name modification

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 26 14:35:58 PST 2017


dedeckeh pushed a commit to source.git, branch master:
https://git.lede-project.org/4f02285d8b4a66359a8fa46f22a3efde391b5419

commit 4f02285d8b4a66359a8fa46f22a3efde391b5419
Author: Florian Eckert <fe at dev.tdt.de>
AuthorDate: Tue Dec 19 15:08:48 2017 +0100

    dnsmasq: rewrite config on host name modification
    
    If the hostname in /etc/config/system is modified the dnsmasq should also
    get triggered to rewrite/reload the config.
    
    Signed-off-by: Florian Eckert <fe at dev.tdt.de>
---
 package/network/services/dnsmasq/files/dnsmasq.init | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/services/dnsmasq/files/dnsmasq.init b/package/network/services/dnsmasq/files/dnsmasq.init
index b84f531..204e27d 100644
--- a/package/network/services/dnsmasq/files/dnsmasq.init
+++ b/package/network/services/dnsmasq/files/dnsmasq.init
@@ -1044,7 +1044,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
 }
 



More information about the lede-commits mailing list