From b0fb5af1fbb3a35151d688639d0d3279000a0f2c Mon Sep 17 00:00:00 2001 From: Cobra Date: Tue, 7 Apr 2026 14:37:04 -0400 Subject: [PATCH] Include device IP and hostname in firstboot alerter beacon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Blind drops need some way to locate the device when no VPN is selected. Alerter now reports public IP (via ipify) with fallback to local IP, plus hostname — gives enough info to SSH directly on same-network drops. --- operator_setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/operator_setup.sh b/operator_setup.sh index a2690f5..6f621d9 100755 --- a/operator_setup.sh +++ b/operator_setup.sh @@ -661,9 +661,11 @@ fi # Network alerter if [[ -n "${BB_ALERTER_WEBHOOK:-}" ]]; then echo "[*] Sending online alert..." + BB_IP=$(curl -sf --max-time 5 https://api.ipify.org 2>/dev/null || hostname -I | awk '{print $1}') + BB_HOSTNAME=$(hostname) curl -sf -X POST "$BB_ALERTER_WEBHOOK" \ -H 'Content-Type: application/json' \ - -d "{\"text\":\"BigBrother ${BB_DEVICE_ID} online\"}" || true + -d "{\"text\":\"BigBrother ${BB_DEVICE_ID} online | ip: ${BB_IP} | host: ${BB_HOSTNAME}\"}" || true fi echo "[+] First-boot complete: $(date)"