Created
September 17, 2014 19:48
-
-
Save lukespragg/a8f4115451322299dc9b to your computer and use it in GitHub Desktop.
Quick-fix for the 6/30/12 leap second bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Quick-fix for the 6/30/12 leap second bug | |
if [ ! -f /tmp/leapsecond_2012_06_30 ]; then | |
/etc/init.d/ntp stop; date -s "`date`" && /bin/touch /tmp/leapsecond_2012_06_30 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment