mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-17 06:23:00 +02:00
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:
5
config/ntp/ntp.conf
Normal file
5
config/ntp/ntp.conf
Normal 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
|
||||
6
lfs/ntp
6
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/
|
||||
|
||||
Reference in New Issue
Block a user