mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-14 15:24:52 +00:00
Reduce logging for 'all good' check
This commit is contained in:
parent
b891737c57
commit
48c78c7f24
@ -14,11 +14,9 @@ while true; do
|
||||
gpio -g write 26 0
|
||||
sleep 2
|
||||
else
|
||||
ping -I ppp0 -c 1 8.8.8.8 -s 0
|
||||
ping -q -I ppp0 -c 1 8.8.8.8 -s 0 >/dev/null
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Connection up, reconnect not required..."
|
||||
else
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Connection down, reconnecting..."
|
||||
sudo pon
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user