#!/bin/sh
# Run as root. Sets up bridge0 + tap0, runs the race loop.
cd "$(dirname "$0")"
# ensure modules
kldload if_bridge 2>/dev/null || true
ifconfig tap0 create 2>/dev/null || true
ifconfig bridge0 create 2>/dev/null || true
sh ./race_loop.sh 2>&1
echo "RUN_EXIT=$?"
