From ca700b5bed120493b0120184defbc4743d03ed30 Mon Sep 17 00:00:00 2001 From: Gaston Gonzalez Date: Fri, 7 Feb 2025 05:45:17 -0700 Subject: [PATCH] R4.13 Fixes - Fixed startup issue for BTECH UV Pro when Winlink packet is used via et-mode --- overlay/opt/emcomm-tools/bin/et-kill-all | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/overlay/opt/emcomm-tools/bin/et-kill-all b/overlay/opt/emcomm-tools/bin/et-kill-all index 0e57b69..b08e594 100755 --- a/overlay/opt/emcomm-tools/bin/et-kill-all +++ b/overlay/opt/emcomm-tools/bin/et-kill-all @@ -6,6 +6,15 @@ # Purpose : Stops all EmComm Tools sound-based services (i.e. modems) and # amatuer radio applications to ensure a clean start for the next mode. +stop_pat() { + PS_OUT=$(ps -ef | grep "[p]at http") + + if [[ $? -eq 0 ]]; then + PAT_PID=$(ps -ef | grep "[p]at http" | awk '{print $2}') + kill -9 ${PAT_PID} + fi +} + # 1. Attempt to stop all EmComm Tools services regardless if they are running. # 2. Stop the applications first, then the modems. stop_all_services() { @@ -23,6 +32,8 @@ stop_all_services() { pkill et-winlink pkill et-vara pkill VARA + + stop_pat } et-log "Stopping all services"