-I ppp0 added for control

This commit is contained in:
saeedjohar 2019-03-22 12:21:29 +03:00
parent 4fb08f1845
commit 67b659154c
3 changed files with 3 additions and 3 deletions

View File

@ -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..."

View File

@ -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..."

View File

@ -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..."