#!/bin/sh set -eu umask 077 cd "$HOME/homelab-companion" set -a . "$HOME/.config/homelab/runtime.env" set +a if timeout 180s python3 unifi_rf_monitor.py; then exit 0 else code=$? printf '%s\n' "RF check failed (exit $code); inspect private state timestamp" >&2 exit "$code" fi