mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-12-24 18:21:36 +00:00
0ba07617f0
ii. Pings Header only to save data.
16 lines
212 B
Bash
16 lines
212 B
Bash
#!/bin/sh
|
|
|
|
while true; do
|
|
|
|
ping -I ppp0 -c 1 8.8.8.8 -s 0
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "Connection up, reconnect not required..."
|
|
else
|
|
echo "Connection down, reconnecting..."
|
|
sudo pon
|
|
fi
|
|
|
|
sleep 10
|
|
done
|