#!/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" & # Sync system clock to PTP hardware clock phc2sys -s "$iface" -s CLOCK_REALTIME -w &