I noticed that netstat -nr | grep default | awk '{ print $4 }' returns multiple lines on my system by grabbing the default routes from the separate IPv4 and IPv6 routing tables, which broke the installation script for me. I replaced it with route -n get -inet default | grep 'interface:' | awk '{ print $2 }' which returns the interface of the default route from the IPv4 routing table and this resolved the issue.
Hi,
I noticed that
netstat -nr | grep default | awk '{ print $4 }'
returns multiple lines on my system by grabbing the default routes from the separate IPv4 and IPv6 routing tables, which broke the installation script for me. I replaced it withroute -n get -inet default | grep 'interface:' | awk '{ print $2 }'
which returns the interface of the default route from the IPv4 routing table and this resolved the issue.