From 04d965d67a7264a1c7c211494aebda1953df7603 Mon Sep 17 00:00:00 2001 From: "info@mode42.com" Date: Fri, 7 Aug 2026 18:25:13 +0000 Subject: Initial push --- stacks/tncs/tnc2c-hybbx-beacon-once.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 stacks/tncs/tnc2c-hybbx-beacon-once.sh (limited to 'stacks/tncs/tnc2c-hybbx-beacon-once.sh') diff --git a/stacks/tncs/tnc2c-hybbx-beacon-once.sh b/stacks/tncs/tnc2c-hybbx-beacon-once.sh new file mode 100755 index 0000000..7249191 --- /dev/null +++ b/stacks/tncs/tnc2c-hybbx-beacon-once.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# One-shot AX.25 beacon like INI [broadcast] - stop HyBBX briefly, then restart. +# Auto-beacon (300s) runs from new HyBBX start. +set -euo pipefail +ROOT="$(cd "$(dirname "$0")" && pwd)" +MSG="${1:-Broadcast: CB-0 online}" +SRC="${2:-CB-0}" +DST="${3:-*}" + +echo "Manual beacon: ${SRC} -> ${DST}: ${MSG}" +if pgrep -x hybbx >/dev/null; then + echo "Stopping HyBBX ..." + pkill -x hybbx || sudo -u hybbx pkill -x hybbx + sleep 2 +fi +"$ROOT/tnc2c-send-test.sh" "$MSG" "$SRC" "$DST" +echo "Starting HyBBX ... (auto-beacon in ~300s)" +sudo -u hybbx /etc/hybbx/hybbx-start & +sleep 3 +pgrep -a hybbx || echo "WARN: hybbx not started - try boot-wait + hybbx-start" +echo "Log: tail -f /etc/hybbx/logs/*.log - expect: [broadcast] ax25" -- cgit v1.3.1