From 84d090747cbab6f223d1b0c5922fb07b0f60be71 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 4 Jan 2025 08:54:18 -0500 Subject: [PATCH] Update rtl-tcp.sh add while to close window --- groundstation/rtl-tcp.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/groundstation/rtl-tcp.sh b/groundstation/rtl-tcp.sh index 4a18c89f..0378909a 100755 --- a/groundstation/rtl-tcp.sh +++ b/groundstation/rtl-tcp.sh @@ -52,8 +52,9 @@ sudo killall -9 zenity &>/dev/null #sudo /bin/sh -c '/usr/local/bin/rtl_tcp -a $(hostname -I|cut -f1 -d " ")' sudo systemctl start rtl_tcp &>/dev/null -sudo journalctl -af -u rtl_tcp - -sleep 5 +while [[ sudo systemctl status rtl_tcp | grep "Active: active (running)" ]] +do + sleep 5 +done #$SHELL