mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
fix(setup): add timeout to rtl_test health check to prevent hangs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
4
setup.sh
4
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
|
||||
|
||||
Reference in New Issue
Block a user