mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
mwan3: revert add online_metric for local_source none
This is not necessary.
This reverts commit be91e71805.
This commit is contained in:
@@ -1219,25 +1219,3 @@ mwan3_track_clean()
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
mwan3_online_metric_clean() {
|
||||
local iface="$1"
|
||||
|
||||
local online_metric ifname
|
||||
|
||||
config_get family $iface family ipv4
|
||||
config_get online_metric $iface online_metric ""
|
||||
ifname=$(uci_get_state network $iface ifname)
|
||||
|
||||
if [ "$family" == "ipv4" ] \
|
||||
&& [ "$online_metric" != "" ] \
|
||||
&& [ "$ifname" != "" ]; then
|
||||
$IP4 route del default dev $ifname proto static metric $online_metric 1>/dev/null 2>&1
|
||||
fi
|
||||
|
||||
if [ "$family" == "ipv6" ] \
|
||||
&& [ "$online_metric" != "" ] \
|
||||
&& [ "$ifname" != "" ]; then
|
||||
$IP6 route del default dev $ifname proto static metric $online_metric 1>/dev/null 2>&1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user