mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix mptcp init script
This commit is contained in:
parent
494fb21026
commit
269d162aed
1 changed files with 9 additions and 0 deletions
|
@ -392,6 +392,15 @@ reload_service() {
|
|||
return 0
|
||||
}
|
||||
|
||||
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/mptcp reload
|
||||
}
|
||||
|
||||
service_triggers() {
|
||||
procd_add_reload_trigger "network"
|
||||
config_load network
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue