Skip to content

Commit

Permalink
install ntp client during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Oct 13, 2024
1 parent b03ccef commit d4bd459
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libov
Submodule libov updated 1 files
+1 −1 tascar
13 changes: 13 additions & 0 deletions tools/install_pi5
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,19 @@ BOOTFS=`mount | grep /boot | sed -e 's/.*\/boot/\/boot/1' -e 's/ .*//1'`
sudo touch ${BOOTFS}/ovclient-wifi.txt
sync

echo "install and activate NTP:"
sudo -E apt install --assume-yes ntp
sudo systemctl stop systemd-timesyncd
sudo sed -i -e 's/^pool.*/#&/1' -e '/ptbtime/ d' /etc/ntp.conf
sudo sed -i -e "/^driftfile/ c driftfile ${BOOTFS}\/ntp.drift" /etc/ntp.conf
(
echo ""
for k in {1..4}; do
echo "pool ptbtime${k}.ptb.de"
done
) | sudo tee -a /etc/ntp.conf
sudo systemctl restart ntp

echo "cleaning up apt:"
sudo -E apt update --assume-yes || true
sudo -E apt autoremove --assume-yes || true
Expand Down

0 comments on commit d4bd459

Please sign in to comment.