Update network.sh

This commit is contained in:
spiritLHLS 2022-12-16 11:01:56 +08:00 committed by GitHub
parent 1928949f36
commit 59282306e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,13 @@ else
else else
echo "Network configuration is correct." echo "Network configuration is correct."
fi fi
# Try to ping again after modifying network priority
if ping -c 1 google.com; then
echo "Ping successful after modifying network priority"
else
echo "Network problem is not related to nameserver or network priority."
fi
fi fi
fi fi
fi fi