mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-25 04:14:53 +00:00
-I ppp0 added for control
This commit is contained in:
parent
4fb08f1845
commit
67b659154c
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
|
|
||||||
ping -c 1 8.8.8.8
|
ping -I ppp0 -c 1 8.8.8.8
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Connection up, reconnect not required..."
|
echo "Connection up, reconnect not required..."
|
||||||
|
@ -19,7 +19,7 @@ while true; do
|
|||||||
gpio -g write 11 0
|
gpio -g write 11 0
|
||||||
sleep 2
|
sleep 2
|
||||||
else
|
else
|
||||||
ping -c 1 8.8.8.8
|
ping -I ppp0 -c 1 8.8.8.8
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Connection up, reconnect not required..."
|
echo "Connection up, reconnect not required..."
|
||||||
|
@ -14,7 +14,7 @@ while true; do
|
|||||||
gpio -g write 26 0
|
gpio -g write 26 0
|
||||||
sleep 2
|
sleep 2
|
||||||
else
|
else
|
||||||
ping -c 1 8.8.8.8
|
ping -I ppp0 -c 1 8.8.8.8
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Connection up, reconnect not required..."
|
echo "Connection up, reconnect not required..."
|
||||||
|
Loading…
Reference in New Issue
Block a user