summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/run-ptp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run-ptp.sh b/scripts/run-ptp.sh
index 54c9693..07c4457 100755
--- a/scripts/run-ptp.sh
+++ b/scripts/run-ptp.sh
@@ -12,3 +12,6 @@ echo "#" >> testptp.cfg
echo "transportSpecific 1" >> testptp.cfg
# Run all as masters and let them select
ptp4l -f testptp.cfg -i "$iface" &
+# Sync PTP hardware clock to the system clock
+# system clock is our master
+phc2sys -c "$iface" -s CLOCK_REALTIME -w &