From fd12d11fab8131686aabf7325c970d87f115a22c Mon Sep 17 00:00:00 2001 From: Smittix Date: Tue, 10 Mar 2026 08:59:08 +0000 Subject: [PATCH] fix(setup): add timeout to rtl_test health check to prevent hangs Co-Authored-By: Claude Opus 4.6 --- setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 7778156..fd0c557 100755 --- a/setup.sh +++ b/setup.sh @@ -1916,7 +1916,9 @@ do_health_check() { echo info "SDR device detection..." if cmd_exists rtl_test; then - if rtl_test -t 2>&1 | grep -q "Found\|Using device"; then + local rtl_output + rtl_output=$(timeout 3 rtl_test -d 0 2>&1 || true) + if echo "$rtl_output" | grep -q "Found\|Using device"; then ok "RTL-SDR device detected" ((pass++)) || true else