ReticulumHF/scripts/stop-stack.sh
LFManifesto be77b04f2c v1.0: Production-ready HF-only release
Major changes:
- Removed all I2P functionality (HF radio focus)
- Fixed service startup timing (freedvtnc2 before rnsd)
- Fixed first-boot not marking setup_complete prematurely
- Fixed wizard step numbering (8 steps, not 9)
- Updated README with accurate workflow and documentation

Bug fixes (closes #2-#8):
- #8: Field WiFi no longer overrides ReticulumHF-Setup
- #7: ALSA config included for freedvtnc2
- #6: Client list uses ARP table for accuracy
- #5: Digirig partial detection now reported correctly
- #4: fake-hwclock preserves date across reboots
- #3: Set Audio validates and returns actual errors
- #2: I2P removed (was never fully functional)

Tested and verified:
- Fresh image boot and first-boot completion
- Setup wizard flow
- Sideband TCP connection
- HF announce triggers radio PTT correctly

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 12:02:05 -05:00

27 lines
747 B
Bash
Executable file

#!/bin/bash
# ReticulumHF Stack Stop Script
# Gracefully stops all ReticulumHF services
echo "[ReticulumHF] Stopping stack..."
# Stop in reverse order
for service in nomadnet rnsd freedvtnc2 rigctld; do
pidfile="/run/reticulumhf/${service}.pid"
if [ -f "$pidfile" ]; then
pid=$(cat "$pidfile")
if kill -0 "$pid" 2>/dev/null; then
echo "[ReticulumHF] Stopping $service (PID: $pid)..."
kill "$pid"
sleep 1
fi
rm -f "$pidfile"
fi
done
# Kill any remaining processes by name
pkill -f "nomadnet" 2>/dev/null || true
pkill -f "rnsd" 2>/dev/null || true
pkill -f "freedvtnc2" 2>/dev/null || true
pkill -f "rigctld" 2>/dev/null || true
echo "[ReticulumHF] Stack stopped"