mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Update dnsmasq.init to latest version
This commit is contained in:
parent
7bb3e6abdd
commit
37e04d0498
1 changed files with 13 additions and 1 deletions
|
@ -1050,10 +1050,22 @@ dnsmasq_stop()
|
||||||
rm -f ${BASEDHCPSTAMPFILE}.${cfg}.*.dhcp
|
rm -f ${BASEDHCPSTAMPFILE}.${cfg}.*.dhcp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_interface_trigger()
|
||||||
|
{
|
||||||
|
local interface ignore
|
||||||
|
|
||||||
|
config_get interface "$1" interface
|
||||||
|
config_get_bool ignore "$1" ignore 0
|
||||||
|
|
||||||
|
[ -n "$interface" -a $ignore -eq 0 ] && procd_add_interface_trigger "interface.*" "$interface" /etc/init.d/dnsmasq reload
|
||||||
|
}
|
||||||
|
|
||||||
service_triggers()
|
service_triggers()
|
||||||
{
|
{
|
||||||
procd_add_reload_trigger "dhcp" "system"
|
procd_add_reload_trigger "dhcp" "system"
|
||||||
procd_add_raw_trigger "interface.*" 2000 /etc/init.d/dnsmasq reload
|
|
||||||
|
config_load dhcp
|
||||||
|
config_foreach add_interface_trigger dhcp
|
||||||
}
|
}
|
||||||
|
|
||||||
boot()
|
boot()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue