mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
modem73 - Added support for force killing modem73 on application exit
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 12 May 2026
|
# Date : 12 May 2026
|
||||||
# Updated : 28 June 2026
|
# Updated : 30 June 2026
|
||||||
# Purpose : Wrapper script for starting Reticulum with PnP support
|
# Purpose : Wrapper script for starting Reticulum with PnP support
|
||||||
#
|
#
|
||||||
# Preconditions:
|
# Preconditions:
|
||||||
@@ -12,6 +12,14 @@
|
|||||||
# 1. Reticulum configuration updated
|
# 1. Reticulum configuration updated
|
||||||
# 2. Optional modem started
|
# 2. Optional modem started
|
||||||
# 3. Reticulum 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
|
. /opt/emcomm-tools/bin/et-common
|
||||||
|
|
||||||
# Ensure that no other modes are running
|
# Ensure that no other modes are running
|
||||||
|
|||||||
Reference in New Issue
Block a user