mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 07:45:13 +08:00
⛅ Sync 2026-10-04 22:17:19
This commit is contained in:
1 parent
d132e566f2
commit
aef2d67550
143 files changed
+442
-212
No files matched your search
@@ -635,7 +635,7 @@ interface_multipath_settings() {
|
||||
|
||||
if [ "$(uci -q get openmptcprouter.settings.force_multipath)" != "0" ] && [ -n "$(ip a show dev $iface | grep inet)" ]; then
|
||||
local tracker_state
|
||||
tracker_state="$(uci -q get openmptcprouter.${config}.state)"
|
||||
tracker_state="$(uci -q -P /var/state get openmptcprouter.${config}.state)"
|
||||
if [ "$tracker_state" = "down" ] && [ -n "$mode" ] && [ "$mode" != "off" ]; then
|
||||
# omr-tracker still considers this interface down: it only flips state
|
||||
# to "up" once its recovery counter (tries_up) is satisfied, and
|
||||
|
||||
@@ -34,13 +34,20 @@ if [ "$(uci -q get network.globals.mptcp_path_manager)" = "" ]; then
|
||||
set network.globals.mptcp_pm_type=0
|
||||
set network.globals.mptcp_disable_initial_config=0
|
||||
set network.globals.mptcp_force_multipath=1
|
||||
set network.globals.mptcpd_enable=0
|
||||
set network.globals.mptcpd_enable='disable'
|
||||
set network.globals.mptcp_close_timeout=60
|
||||
set network.globals.mptcp_blackhole_timeout=0
|
||||
set network.globals.mptcp_syn_retrans_before_tcp_fallback=2
|
||||
commit network
|
||||
EOF
|
||||
fi
|
||||
# mptcpd_enable is "enable"/"disable" (mptcpd's init only starts on
|
||||
# "enable", the LuCI field only knows those two), but this file used to
|
||||
# write 0, which the form could not show and dropped on save.
|
||||
case "$(uci -q get network.globals.mptcpd_enable)" in
|
||||
0) uci -q set network.globals.mptcpd_enable='disable'; uci -q commit network ;;
|
||||
1) uci -q set network.globals.mptcpd_enable='enable'; uci -q commit network ;;
|
||||
esac
|
||||
# Legacy v0.9x scheduler names carried over to a 6.x kernel: only the names
|
||||
# that never exist upstream are migrated (BPF schedulers are not listed in
|
||||
# available_schedulers until their object is registered, so they must not be
|
||||
|
||||
Reference in new issue
Block a user