diff --git a/ppp_installer/reconnect_baseshield b/ppp_installer/reconnect_baseshield index 69b667a..0688998 100644 --- a/ppp_installer/reconnect_baseshield +++ b/ppp_installer/reconnect_baseshield @@ -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