Merge pull request #6 from tomsaul/patch-1

Reduce logging for 'all good' check
This commit is contained in:
saeedjohar
2019-08-28 16:45:29 +03:00
committed by GitHub

View File

@@ -2,11 +2,9 @@
while true; do 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 if [ $? -ne 0 ]; then
echo "Connection up, reconnect not required..."
else
echo "Connection down, reconnecting..." echo "Connection down, reconnecting..."
sudo pon sudo pon
fi fi