mirror of
https://github.com/sixfab/Sixfab_PPP_Installer
synced 2024-11-22 02:54:53 +00:00
Merge pull request #7 from tomsaul/patch-2
Reduce logging for 'all good' check
This commit is contained in:
commit
2f38167477
@ -19,11 +19,9 @@ while true; do
|
|||||||
gpio -g write 24 0
|
gpio -g write 24 0
|
||||||
sleep 2
|
sleep 2
|
||||||
else
|
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
|
if [ $? -ne 0 ]; then
|
||||||
echo "Connection up, reconnect not required..."
|
|
||||||
else
|
|
||||||
echo "Connection down, reconnecting..."
|
echo "Connection down, reconnecting..."
|
||||||
sudo pon
|
sudo pon
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user