Skip to content

Instantly share code, notes, and snippets.

@ryenus
Created June 16, 2014 22:49
Show Gist options
  • Save ryenus/6afc18907d30b7f0d175 to your computer and use it in GitHub Desktop.
Save ryenus/6afc18907d30b7f0d175 to your computer and use it in GitHub Desktop.
synchronize system clock
#!/bin/sh
fixclock() {
ntpdate pool.ntp.org && hwclock --systohc && hwclock --adjust
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment