1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Disable 9998 metric set when Multipath off

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-11-22 09:46:07 +01:00
parent 3d8b9360b4
commit a26255203e

View file

@ -139,8 +139,8 @@ interface_multipath_settings() {
metric="1500" metric="1500"
elif [ "${config}" = "omr6in4" ]; then elif [ "${config}" = "omr6in4" ]; then
metric="1201" metric="1201"
elif [ "$(uci -q get network.${config}.multipath)" = "off" ]; then # elif [ "$(uci -q get network.${config}.multipath)" = "off" ]; then
metric="9998" # metric="9998"
fi fi
config_set "$config" metric $metric config_set "$config" metric $metric
uci -q set network.${config}.metric=$metric uci -q set network.${config}.metric=$metric