Revise route query for IP & GW selection from Quad9 to TEST-NET-1

This commit is contained in:
h-town 2020-01-03 10:56:28 -06:00 committed by GitHub
parent 78a6f14742
commit 465d157a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,8 +57,8 @@ r=$(( r < 20 ? 20 : r ))
c=$(( c < 70 ? 70 : c ))
# Find IP used to route to outside world
IPv4addr=$(ip route get 9.9.9.9 | awk '{print $7}')
IPv4gw=$(ip route get 9.9.9.9 | awk '{print $3}')
IPv4addr=$(ip route get 192.0.2.1 | awk '{print $7}')
IPv4gw=$(ip route get 192.0.2.2 | awk '{print $3}')
availableInterfaces=$(ip -o link | grep "state UP" | awk '{print $2}' | cut -d':' -f1 | cut -d'@' -f1)
dhcpcdFile=/etc/dhcpcd.conf