1
0
Fork 0
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:
Ycarus 2018-12-23 14:12:45 +01:00
parent 27421993e6
commit 19efd53b56

View file

@ -45,6 +45,7 @@ interface_multipath_settings() {
config_get enabled "$config" auto "1"
config_get iface "$config" ifname
[ -z "$iface" ] && iface=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
count=$(($count+1))
id=$count
config_set "$config" metric $count
@ -67,7 +68,6 @@ interface_multipath_settings() {
}
[ "$enabled" = "0" ] && return 0
[ -z "$iface" ] && iface=$(ifstatus "$config" | jsonfilter -q -e '@["l3_device"]')
[ -n "$intf" ] && [ "$iface" != "$intf" ] && return 0
[ -z "$iface" ] && return 0
[ -n "$(ifconfig | grep $iface)" ] || return 0