From 4e49d67990b8509d12114f868d48469d41e4b06a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 30 Oct 2020 15:07:26 +0000 Subject: [PATCH] ntp: Move configuration into an own file We should not write files like that in the LFS scripts. Signed-off-by: Michael Tremer --- config/ntp/ntp.conf | 5 +++++ lfs/ntp | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 config/ntp/ntp.conf diff --git a/config/ntp/ntp.conf b/config/ntp/ntp.conf new file mode 100644 index 0000000000..cb75a53291 --- /dev/null +++ b/config/ntp/ntp.conf @@ -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 diff --git a/lfs/ntp b/lfs/ntp index 3c4a97033c..7a10f1737c 100644 --- a/lfs/ntp +++ b/lfs/ntp @@ -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/ -- 2.39.2