From 49e8a33d7dc3291e09ec053b2d5e540823ec17b5 Mon Sep 17 00:00:00 2001 From: Griffin Della Grotte Date: Sun, 31 Mar 2024 21:53:06 -0700 Subject: [PATCH] Update install_opi5.sh --- install_opi5.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/install_opi5.sh b/install_opi5.sh index 63fd376..64a392c 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -47,21 +47,21 @@ sed -i '/^clock_servo.*/c\clock_servo linreg' /etc/linuxptp/ptp4l.co sed -i '/^logging_level.*/c\logging_level 7' /etc/linuxptp/ptp4l.conf sed -i '/^delay_mechanism.*/c\delay_mechanism Auto' /etc/linuxptp/ptp4l.conf sed -i '/^time_stamping.*/c\time_stamping software' /etc/linuxptp/ptp4l.conf +sed -i '/^step_threshold.*/c\step_threshold 0.000002' /etc/linuxptp/ptp4l.conf # Start and enable the service so it always runs systemctl enable ptp4l@eth0.service # Fix up phc2sys service -sed -i '/^Requires=.*/c\Requires=ptp4l@%I.service' /lib/systemd/system/phc2sys@.service -sed -i '/^After=.*/c\After=ptp4l@%I.service' /lib/systemd/system/phc2sys@.service -# sed -i '/^ExecStart=.*/c\ExecStart=/usr/sbin/phc2sys -l 7 -w -s %I -r' /lib/systemd/system/phc2sys@.service -sed -i '/^ExecStart=.*/{c\ -ExecStart=/usr/sbin/phc2sys -l 7 -w -s %I -r\ -Restart=always\ -StartLimitInterval=0\ -RestartSec=5\ -}' -# Start and enable the service so it always runs -systemctl enable phc2sys@eth0.service +# sed -i '/^Requires=.*/c\Requires=ptp4l@%I.service' /lib/systemd/system/phc2sys@.service +# sed -i '/^After=.*/c\After=ptp4l@%I.service' /lib/systemd/system/phc2sys@.service +# sed -i '/^ExecStart=.*/{c\ +# ExecStart=/usr/sbin/phc2sys -l 7 -w -s %I -r\ +# Restart=always\ +# StartLimitInterval=0\ +# RestartSec=5\ +# }' +# # Start and enable the service so it always runs +# systemctl enable phc2sys@eth0.service cat > /etc/netplan/00-default-nm-renderer.yaml <