mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ntp: Prefer local clock
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>
This commit is contained in:
2
lfs/ntp
2
lfs/ntp
@@ -86,7 +86,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user