mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-14 15:24:52 +00:00
16 lines
199 B
Plaintext
16 lines
199 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
while true; do
|
||
|
|
||
|
ping -c 1 8.8.8.8
|
||
|
|
||
|
if [ $? -eq 0 ]; then
|
||
|
echo "Connection up, reconnect not required..."
|
||
|
else
|
||
|
echo "Connection down, reconnecting..."
|
||
|
sudo pon
|
||
|
fi
|
||
|
|
||
|
sleep 1
|
||
|
done
|