ntp: Move configuration into an own file

We should not write files like that in the LFS scripts.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2020-10-30 15:07:26 +00:00
parent e1f7cc9077
commit 4e49d67990
2 changed files with 6 additions and 5 deletions

5
config/ntp/ntp.conf Normal file
View File

@@ -0,0 +1,5 @@
disable monitor
restrict default nomodify noquery
server 127.127.1.0 prefer
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp/drift

View File

@@ -83,11 +83,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
-mkdir /etc/ntp
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 prefer" >> /etc/ntp.conf
echo "fudge 127.127.1.0 stratum 10" >> /etc/ntp.conf
echo "driftfile /etc/ntp/drift" >> /etc/ntp.conf
install -v -m 644 $(DIR_SRC)/config/ntp/ntp.conf /etc/ntp.conf
#Enable it by default...
cp -vf $(DIR_SRC)/config/time/* /var/ipfire/time/