fix determining default gateway (defaultgw)

This commit is contained in:
olli 2024-02-05 14:55:04 +01:00
parent c65b14cb4c
commit 92de0c3b56

View File

@ -16,7 +16,7 @@
g_nice g_nice
g_all-to-syslog g_all-to-syslog
read _ _ defaultgw _ < <(ip route list match 0/0)
if wget -q -t1 --timeout=30 http://${defaultgw} -O /dev/null if wget -q -t1 --timeout=30 http://${defaultgw} -O /dev/null
then then