blob: 07c445756647b6de3de569644f7baad6703f8a93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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 PTP hardware clock to the system clock
# system clock is our master
phc2sys -c "$iface" -s CLOCK_REALTIME -w &
|