Skip to content

Commit

Permalink
Update install_opi5.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dellagd authored Apr 1, 2024
1 parent e37cfa9 commit 49e8a33
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions install_opi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]

# Fix up phc2sys service
sed -i '/^Requires=.*/c\Requires=ptp4l@%I.service' /lib/systemd/system/[email protected]
sed -i '/^After=.*/c\After=ptp4l@%I.service' /lib/systemd/system/[email protected]
# sed -i '/^ExecStart=.*/c\ExecStart=/usr/sbin/phc2sys -l 7 -w -s %I -r' /lib/systemd/system/[email protected]
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 [email protected]
# sed -i '/^Requires=.*/c\Requires=ptp4l@%I.service' /lib/systemd/system/[email protected]
# sed -i '/^After=.*/c\After=ptp4l@%I.service' /lib/systemd/system/[email protected]
# 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 [email protected]

cat > /etc/netplan/00-default-nm-renderer.yaml <<EOF
network:
Expand Down

0 comments on commit 49e8a33

Please sign in to comment.