sync time when connected to internet

This commit is contained in:
Joerg Lehmann 2018-05-29 17:51:58 +02:00
parent e1a7c66288
commit 2d3c1ceda1
1 changed files with 1 additions and 0 deletions

View File

@ -15,4 +15,5 @@ while ! ping -c 1 -W 1 8.8.8.8 &>/dev/null ; do
fi
x=$((x+1))
done
/usr/sbin/ntpdate 3.de.pool.ntp.org
echo "$(date): Connected to Internet...- IP: $(/home/pi/root-bin/get_internet_ip)"