Skip to content

Instantly share code, notes, and snippets.

@mamchenkov
Created September 12, 2012 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamchenkov/3709152 to your computer and use it in GitHub Desktop.
Save mamchenkov/3709152 to your computer and use it in GitHub Desktop.
ntpdate time synchronization
#!/bin/bash
/usr/sbin/ntpdate -s 0.fedora.pool.ntp.org
/usr/sbin/ntpdate -s 1.fedora.pool.ntp.org
/usr/sbin/ntpdate -s 2.fedora.pool.ntp.org
/sbin/hwclock -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment