From 694bcf145bdeec0ad65f09bf2fe5758bd4df09c5 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sun, 13 Nov 2016 22:41:25 +0100 Subject: [PATCH] Create ntpdate.sh --- static/ntpdate.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 static/ntpdate.sh diff --git a/static/ntpdate.sh b/static/ntpdate.sh new file mode 100644 index 00000000..89e3a1c3 --- /dev/null +++ b/static/ntpdate.sh @@ -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