i. Checks connection every 10s before auto reconnect.

ii. Pings Header only to save data.
This commit is contained in:
saeedjohar
2019-06-10 19:11:54 +03:00
parent c885071047
commit 0ba07617f0
4 changed files with 8 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
while true; do
ping -I ppp0 -c 1 8.8.8.8
ping -I ppp0 -c 1 8.8.8.8 -s 0
if [ $? -eq 0 ]; then
echo "Connection up, reconnect not required..."
@@ -11,5 +11,5 @@ while true; do
sudo pon
fi
sleep 1
sleep 10
done