1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-06-07 05:50:46 +00:00

Fix "ping6" and "ping -6" usage

This commit is contained in:
angristan 2018-10-01 21:00:26 +02:00
parent c9c6089cd6
commit bca57c483d

View File

@ -211,7 +211,13 @@ function installQuestions () {
echo "" echo ""
echo "Checking for IPv6 connectivity..." echo "Checking for IPv6 connectivity..."
echo "" echo ""
if ping -6 -c4 ipv6.google.com > /dev/null 2>&1; then # "ping6" and "ping -6" availability varies depending on the distribution
if type ping6 > /dev/null 2>&1; then
PING6="ping6 -c3 ipv6.google.com > /dev/null 2>&1"
else
PING6="ping -6 -c3 ipv6.google.com > /dev/null 2>&1"
fi
if eval "$PING6"; then
echo "Your host appears to have IPv6 connectivity." echo "Your host appears to have IPv6 connectivity."
SUGGESTION="y" SUGGESTION="y"
else else