1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
This commit is contained in:
Ycarus (Yannick Chabanois) 2020-02-25 14:53:53 +01:00
parent 2253a1c365
commit 291e0a4653

View file

@ -97,7 +97,7 @@ set_routes_intf() {
if [ -z "$interface_gw" ]; then
interface_gw=$(ubus call network.interface.${INTERFACE}_4 status 2>/dev/null | jsonfilter -q -l 1 -e '@.inactive.route[@.target="0.0.0.0"].nexthop' | tr -d "\n")
fi
if [ "$interface_gw" != "" ] && [ "$interface_if != "" ]; then
if [ "$interface_gw" != "" ] && [ "$interface_if" != "" ]; then
routesintf="$routesintf nexthop via $interface_gw dev $interface_if weight 1"
fi
fi