Reduce logging for 'all good' check

This commit is contained in:
Tom Saul 2019-07-31 14:48:18 -07:00 committed by GitHub
parent b891737c57
commit 1d4e3c2584
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,9 @@
while true; do
ping -I ppp0 -c 1 8.8.8.8 -s 0
ping -q -I ppp0 -c 1 8.8.8.8 -s 0 >/dev/null
if [ $? -eq 0 ]; then
echo "Connection up, reconnect not required..."
else
if [ $? -ne 0 ]; then
echo "Connection down, reconnecting..."
sudo pon
fi