Skip to content

Instantly share code, notes, and snippets.

@bryanstearns
Created December 18, 2012 19:23
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanstearns/4331076 to your computer and use it in GitHub Desktop.
Save bryanstearns/4331076 to your computer and use it in GitHub Desktop.
I put this in my basebox postinstall scripts to help NTP deal with large time differences
# Make sure ntpd doesn't give up if the time is way off
cp /etc/ntp.conf /etc/ntp.conf.old
(echo tinker panic 0; cat /etc/ntp.conf.old) >/etc/ntp.conf
/etc/init.d/ntp restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment