diff --git a/install_opi5.sh b/install_opi5.sh index 027891c..4f19429 100755 --- a/install_opi5.sh +++ b/install_opi5.sh @@ -48,9 +48,15 @@ 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 # Start and enable the service so it always runs -systemctl start ptp4l@eth0.service 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 +# Start and enable the service so it always runs +systemctl enable phc2sys@eth0.service + cat > /etc/netplan/00-default-nm-renderer.yaml <