diff options
Diffstat (limited to 'scripts/run-ptp.sh')
-rwxr-xr-x | scripts/run-ptp.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/run-ptp.sh b/scripts/run-ptp.sh new file mode 100755 index 0000000..ebaeed7 --- /dev/null +++ b/scripts/run-ptp.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +. scripts/lava-common.sh + +# stop the default service +systemctl stop ptp4l +iface=$(find_vland_iface) + +echo "[global]" > testptp.cfg +echo "[$iface]" >> testptp.cfg +echo "#" >> testptp.cfg +echo "transportSpecific 1" >> testptp.cfg +# Run all as masters and let them select +ptp4l -f testptp.cfg -i "$iface" -m & |