From 67b659154c7e59075aedb4454f1a77a24e28c616 Mon Sep 17 00:00:00 2001 From: saeedjohar Date: Fri, 22 Mar 2019 12:21:29 +0300 Subject: [PATCH] -I ppp0 added for control --- ppp_installer/reconnect_baseshield | 2 +- ppp_installer/reconnect_cellulariot | 2 +- ppp_installer/reconnect_gprsshield | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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..."