diff --git a/ppp_installer/reconnect_baseshield b/ppp_installer/reconnect_baseshield index a161cc0..91e8a98 100644 --- a/ppp_installer/reconnect_baseshield +++ b/ppp_installer/reconnect_baseshield @@ -2,7 +2,7 @@ while true; do - ping -c 1 8.8.8.8 + ping -I ppp0 -c 1 8.8.8.8 if [ $? -eq 0 ]; then echo "Connection up, reconnect not required..." diff --git a/ppp_installer/reconnect_cellulariot b/ppp_installer/reconnect_cellulariot index cee4094..330fa0b 100644 --- a/ppp_installer/reconnect_cellulariot +++ b/ppp_installer/reconnect_cellulariot @@ -19,7 +19,7 @@ while true; do gpio -g write 11 0 sleep 2 else - ping -c 1 8.8.8.8 + ping -I ppp0 -c 1 8.8.8.8 if [ $? -eq 0 ]; then echo "Connection up, reconnect not required..." diff --git a/ppp_installer/reconnect_gprsshield b/ppp_installer/reconnect_gprsshield index d6ae6cf..0315448 100644 --- a/ppp_installer/reconnect_gprsshield +++ b/ppp_installer/reconnect_gprsshield @@ -14,7 +14,7 @@ while true; do gpio -g write 26 0 sleep 2 else - ping -c 1 8.8.8.8 + ping -I ppp0 -c 1 8.8.8.8 if [ $? -eq 0 ]; then echo "Connection up, reconnect not required..."