#!/bin/sh -x

sleep 10
cd /home/root/compareDirections
./compareDirections.sh eth1 eth3
phc2sys -m -q -s /dev/ptp2 -c /dev/ptp4 -O 0 -l 6 -R 10 -c /dev/ptp6 >> phc2sys_log &
sleep 1
for i in {1..10}
do
	./compareDirections.sh eth1 eth3
done
kill %1
sleep 1
phc2sys -m -q -s /dev/ptp3 -c /dev/ptp5 -O 0 -l 6 -R 10 -c /dev/ptp7 >> phc2sys_log &
sleep 1
for i in {1..10}
do
	./compareDirections.sh eth1 eth3
done
kill %1
reboot