For some reason, ntp won't use a local clock even if it is
there and up and running. Therefore we need to "prefer" our
only source of time.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
chown -R ntp:ntp /etc/ntp
echo "disable monitor" > /etc/ntp.conf
echo "restrict default nomodify noquery" >> /etc/ntp.conf
- echo "server 127.127.1.0" >> /etc/ntp.conf
+ echo "server 127.127.1.0 prefer" >> /etc/ntp.conf
echo "fudge 127.127.1.0 stratum 10" >> /etc/ntp.conf
echo "driftfile /etc/ntp/drift" >> /etc/ntp.conf