modem73 - Added support for force killing modem73 on application exit

This commit is contained in:
thetechprepper
2026-06-30 11:59:53 -07:00
parent bbb0417c50
commit 5419c48b9b
+9 -1
View File
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 12 May 2026
# Updated : 28 June 2026
# Updated : 30 June 2026
# Purpose : Wrapper script for starting Reticulum with PnP support
#
# Preconditions:
@@ -12,6 +12,14 @@
# 1. Reticulum configuration updated
# 2. Optional modem started
# 3. Reticulum started
# The current version of modem73 does not alway exit.
cleanup() {
pkill -9 modem73 2>/dev/null || true
}
trap cleanup EXIT INT TERM
. /opt/emcomm-tools/bin/et-common
# Ensure that no other modes are running