mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-22 19:14:53 +00:00
14 lines
170 B
Bash
14 lines
170 B
Bash
#!/bin/sh
|
|
|
|
while true; do
|
|
|
|
ping -q -I ppp0 -c 1 8.8.8.8 -s 0 >/dev/null
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Connection down, reconnecting..."
|
|
sudo pon
|
|
fi
|
|
|
|
sleep 10
|
|
done
|