From 088c7058d0b3c40eb304c4ccf4450a4187849170 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 22 Jul 2024 17:02:19 -0400 Subject: [PATCH] Update command fix rtl_test --- command | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command b/command index e83ca7a5..b3d296f2 100755 --- a/command +++ b/command @@ -63,7 +63,8 @@ else # echo "Trying RTL-FM" - if [ $(rtl_test | grep "No supported devices found.") ] ; then + timeout 1 rtl_test &> out.txt + if [ $(grep "No supported" out.txt && rm out.txt) ] ; then echo "No RTL-SDR detected. Command and control is OFF" # sleep 60 @@ -95,6 +96,7 @@ else # sudo killall -9 direwolf # sudo killall -9 rtl_fm fi + rm out.txt else echo "Starting Carrier (squelch) Command and Control"