mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix mptcp script
This commit is contained in:
parent
27421993e6
commit
19efd53b56
1 changed files with 1 additions and 1 deletions
|
@ -45,6 +45,7 @@ interface_multipath_settings() {
|
||||||
|
|
||||||
config_get enabled "$config" auto "1"
|
config_get enabled "$config" auto "1"
|
||||||
config_get iface "$config" ifname
|
config_get iface "$config" ifname
|
||||||
|
[ -z "$iface" ] && iface=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
|
||||||
count=$(($count+1))
|
count=$(($count+1))
|
||||||
id=$count
|
id=$count
|
||||||
config_set "$config" metric $count
|
config_set "$config" metric $count
|
||||||
|
@ -67,7 +68,6 @@ interface_multipath_settings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
[ "$enabled" = "0" ] && return 0
|
[ "$enabled" = "0" ] && return 0
|
||||||
[ -z "$iface" ] && iface=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
|
|
||||||
[ -n "$intf" ] && [ "$iface" != "$intf" ] && return 0
|
[ -n "$intf" ] && [ "$iface" != "$intf" ] && return 0
|
||||||
[ -z "$iface" ] && return 0
|
[ -z "$iface" ] && return 0
|
||||||
[ -n "$(ifconfig | grep $iface)" ] || return 0
|
[ -n "$(ifconfig | grep $iface)" ] || return 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue