Create ntpdate.sh

This commit is contained in:
Daniel Hansson 2016-11-13 22:41:25 +01:00 committed by GitHub
parent 77799a3e7a
commit 694bcf145b

7
static/ntpdate.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
wget -q --spider http://google.com
if [ $? -eq 0 ]
then
ntpdate -s 1.se.pool.ntp.org
fi
exit