Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- sudo service ntpd stop
- sudo chkconfig ntpd on
- sudo rm -rf /etc/ntp.conf
- sudo cat > /etc/ntp.conf <<EOF
- driftfile /var/lib/ntp/drift
- restrict default kod nomodify notrap nopeer noquery
- restrict 127.0.0.1
- restrict -6 ::1
- server 192.168.200.100
- server 10.192.24.1
- server 0.us.pool.ntp.org
- server 1.us.pool.ntp.org
- includefile /etc/ntp/crypto/pw
- keys /etc/ntp/keys
- EOF
- sudo service ntpdate start
- sudo service ntpd restart
- /usr/local/bin/ttservices stop
- /usr/local/bin/ttservices start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement