#!/bin/bash . scripts/lava-common.sh batch='taprio.batch' iface=$(find_vland_iface) # 37 seconds is the TAI-UTC offset. Start it after 5 seconds i=$((`date +%s%N` + 37000000000 + (5 * 1000000000))) # round it down base=$(($i - ($i % 1000000000))) # TODO make sched entries configurable cat > $batch <