Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lynt-smitka
Created January 4, 2016 09:29
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 lynt-smitka/fb8b300d10313e45a3d0 to your computer and use it in GitHub Desktop.
Save lynt-smitka/fb8b300d10313e45a3d0 to your computer and use it in GitHub Desktop.
cd /etc/cron.hourly
touch ntpsync
chmod +x ntpsync
echo '#!/bin/bash' > ntpsync
echo 'ntpdate 195.113.144.201 #tik.cesnet.cz' >> ntpsync
echo 'hwclock --systohc' >> ntpsync
./ntpsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment