From: Michael Tremer Date: Tue, 15 Dec 2015 12:49:27 +0000 (+0000) Subject: ntp: Prefer local clock X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=429524c0406baeddf270d6e2df6e5a60a410e61a;p=people%2Fms%2Fipfire-2.x.git 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 Tested-by: Daniel Weismüller --- diff --git a/lfs/ntp b/lfs/ntp index 7c23a3c407..2d04b17ba0 100644 --- a/lfs/ntp +++ b/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