diff --git a/sbin/monitor_interface b/sbin/monitor_interface index 18e18d7f0..62d781a5e 100755 --- a/sbin/monitor_interface +++ b/sbin/monitor_interface @@ -64,7 +64,7 @@ while :; do if [[ $STATE == 1 ]]; then # no existing default and new default is defined? IPV4=$(ip -4 -br addr show scope global primary dev $PORT | awk '{print $3;exit}') - [[ -n $IPV4 && "${TASK[$i]}" =~ "default" && -z $(ip -4 route show to default dev $PORT)]] && ip -4 route add dev ${TASK[$i]/GW4/} + [[ -n $IPV4 && "${TASK[$i]}" =~ "default" && -z $(ip -4 route show to default dev $PORT) ]] && ip -4 route add dev ${TASK[$i]/GW4/} fi ;; GW6)