mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2025-12-06 10:23:20 +00:00
added ppp_installer
This commit is contained in:
15
ppp_installer/reconnect_baseshield
Normal file
15
ppp_installer/reconnect_baseshield
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user