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>
This commit is contained in:
parent
960c477432
commit
854459a2f9
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue