#!/usr/bin/env bash # Probe FIRST, launch second: the probe waits for a roster to appear so it sees # the mission from its first moment, not from when screen_id notices flight. set -u export HOME=/sylph-home/re SDL_AUDIODRIVER=dummy DISPLAY=:98 export PYTHONPATH=/sylph-home/.local/lib/python3.12/site-packages SD="$(cd "$(dirname "$0")" && pwd)" nohup python3 "$SD/early_probe.py" --wait "${1:-45}" "${2:-200}" /tmp/early2-probe.log 2>&1 & PROBE=$! "$SD/launch_mission.sh" fly || { echo "BOOT FAILED"; kill $PROBE 2>/dev/null; exit 1; } wait $PROBE echo "EARLY2 DONE"