From ca29e2f3ea556c40e8d60fbf57676da71b4f39ce Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 27 May 2013 09:44:17 +0200 Subject: Initial import --- 50-ntpdate | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 50-ntpdate diff --git a/50-ntpdate b/50-ntpdate new file mode 100644 index 0000000..f9e980a --- /dev/null +++ b/50-ntpdate @@ -0,0 +1,14 @@ +#!/bin/sh +# Sync time from pool.ntp.org as soon as connection is up + +case "${reason}" in + BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) + # this reads nameserver from /etc/ntp.conf + ntpd -q + # alternatively use ntpdate and give hostname + #ntpdate -u pool.ntp.org + ;; + PREINIT|EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP) + # do nothing here... + ;; +esac -- cgit v1.2.3-70-g09d2