Skip to content

Instantly share code, notes, and snippets.

@danish-rehman
Created January 8, 2015 20:43
Show Gist options
  • Save danish-rehman/8de47ae30aa16ac5caa8 to your computer and use it in GitHub Desktop.
Save danish-rehman/8de47ae30aa16ac5caa8 to your computer and use it in GitHub Desktop.
NTP Source code and Configuration
# Change master NTP server
>> vim /etc/ntp.conf
server node2.test1.usc558l
# Change source code for ntpupdate
>> vim ntpdate / ntpdate.c
grep "static int clock_adjust(void)"
# Change source code to stop NTP from changing time
# Add "return 0" as soon as the function
# clock_local() starts
>> vim ntpd/ntp_loopfilter.c
grep "clock_local()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment