Sixfab_PPP_Installer/ppp_installer/reconnect_baseshield

16 lines
199 B
Plaintext
Raw Normal View History

2018-10-15 14:58:48 +00:00
#!/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