Created
January 4, 2016 09:29
-
-
Save lynt-smitka/fb8b300d10313e45a3d0 to your computer and use it in GitHub Desktop.
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
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