diff options
author | Christian Hesse <mail@eworm.de> | 2014-08-29 17:49:44 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2014-08-29 17:49:44 +0200 |
commit | 18024e7006027095430511893ee374a1ec0b596e (patch) | |
tree | 2d14ed0641a4eeb20e1c35249c7b15f9b6c41b27 /50-ntpdate | |
parent | dab6a6d3d9a805090f81ec6deff7ced9411bea6b (diff) | |
download | dhcpcd-hook-ntpdate-18024e7006027095430511893ee374a1ec0b596e.tar.gz dhcpcd-hook-ntpdate-18024e7006027095430511893ee374a1ec0b596e.tar.zst |
do not fail on time difference more than 1000 seconds
Diffstat (limited to '50-ntpdate')
-rw-r--r-- | 50-ntpdate | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,10 +1,10 @@ #!/bin/sh - + case "${reason}" in BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC) # sync time as soon as connection is up # this reads nameserver from /etc/ntp.conf - ntpd -q + ntpd --quit --panicgate # alternatively use ntpdate and give hostname #ntpdate -u pool.ntp.org ;; |