mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix on openmptcprouter
This commit is contained in:
parent
b634bf6554
commit
97c53417ec
2 changed files with 25 additions and 17 deletions
|
@ -9,6 +9,11 @@ USE_PROCD=1
|
|||
omr_intf_del() {
|
||||
uci -q delete openmptcprouter.$1
|
||||
}
|
||||
|
||||
omr_intf_check() {
|
||||
[ "$(uci -q get network.$1)" = "" ] && omr_intf_del $1
|
||||
}
|
||||
|
||||
omr_intf_set() {
|
||||
config_get multipath "$1" multipath
|
||||
config_get ifname "$1" ifname
|
||||
|
@ -64,8 +69,8 @@ set_ipv6_state() {
|
|||
start_service() {
|
||||
local scaling_min_freq scaling_max_freq
|
||||
|
||||
#config_load openmptcprouter
|
||||
#config_foreach omr_intf_del interface
|
||||
config_load openmptcprouter
|
||||
config_foreach omr_intf_check interface
|
||||
config_load network
|
||||
config_foreach omr_intf_set interface
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue