vm/static/ntpdate.sh
Daniel Hansson 9c29b7746b Signed-off-by: Daniel Hansson <daniel@techandme.se>
check connectivity with curl instead of wget
2016-12-15 21:08:16 +01:00

8 lines
108 B
Bash

#!/bin/bash
curl -s http://google.com > /dev/null
if [ $? -eq 0 ]
then
ntpdate -s 1.se.pool.ntp.org
fi
exit