mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Better trigger
This commit is contained in:
parent
7a9551b7c1
commit
4b77dd89b2
1 changed files with 2 additions and 9 deletions
|
@ -393,14 +393,7 @@ reload_service() {
|
|||
}
|
||||
|
||||
service_triggers() {
|
||||
local interfaces
|
||||
procd_add_reload_trigger network
|
||||
procd_add_reload_trigger "network"
|
||||
config_load network
|
||||
config_foreach load_interfaces interface
|
||||
|
||||
[ -n "${interfaces}" ] && {
|
||||
for n in $interfaces ; do
|
||||
procd_add_interface_trigger "interface.*" $n /etc/init.d/mptcp reload $n
|
||||
done
|
||||
}
|
||||
config_foreach add_interface_trigger interface
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue