11 lines
215 B
Bash
Executable file
11 lines
215 B
Bash
Executable file
#!/bin/bash
|
|
ntpfile=`mktemp`
|
|
cat << EOF > $ntpfile
|
|
server ntp.ubuntu.com iburst
|
|
server 127.127.1.0
|
|
fudge 127.127.1.0 stratum 10
|
|
EOF
|
|
|
|
mv /etc/ntp.conf /etc/ntp.conf.orig
|
|
mv $ntpfile /etc/ntp.conf
|
|
service ntp restart
|