sync time when connected to internet
This commit is contained in:
parent
e1a7c66288
commit
2d3c1ceda1
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue