mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix previous fix
This commit is contained in:
parent
d2658465d0
commit
8f490b9be7
1 changed files with 6 additions and 6 deletions
|
@ -209,13 +209,13 @@ set_routes_intf6() {
|
||||||
interface_gw="$(uci -q get network.$INTERFACE.ip6gw)"
|
interface_gw="$(uci -q get network.$INTERFACE.ip6gw)"
|
||||||
interface_ip6="$(uci -q get network.$INTERFACE.ip6)"
|
interface_ip6="$(uci -q get network.$INTERFACE.ip6)"
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}\"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}\"].nexthop" | tr -d "\n")
|
||||||
fi
|
fi
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/64\"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/64\"].nexthop" | tr -d "\n")
|
||||||
fi
|
fi
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/56\"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/56\"].nexthop" | tr -d "\n")
|
||||||
fi
|
fi
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e '@.inactive.route[@.target="::"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e '@.inactive.route[@.target="::"].nexthop' | tr -d "\n")
|
||||||
|
@ -318,13 +318,13 @@ set_route_balancing6() {
|
||||||
interface_gw="$(uci -q get network.$INTERFACE.gateway)"
|
interface_gw="$(uci -q get network.$INTERFACE.gateway)"
|
||||||
interface_ip6="$(uci -q get network.$INTERFACE.ip6)"
|
interface_ip6="$(uci -q get network.$INTERFACE.ip6)"
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}\"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}\"].nexthop" | tr -d "\n")
|
||||||
fi
|
fi
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/64\"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/64\"].nexthop" | tr -d "\n")
|
||||||
fi
|
fi
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/56\"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e "@.inactive.route[@.source=\"${interface_ip6}/56\"].nexthop" | tr -d "\n")
|
||||||
fi
|
fi
|
||||||
if [ -z "$interface_gw" ]; then
|
if [ -z "$interface_gw" ]; then
|
||||||
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e '@.inactive.route[@.target="::"].nexthop' | tr -d "\n")
|
interface_gw=$(ubus call network.interface.$INTERFACE status 2>/dev/null | jsonfilter -q -l 1 -e '@.inactive.route[@.target="::"].nexthop' | tr -d "\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue