From 87b9216e39ffa90037bd0d9d790cf5a978a3cfc7 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Mon, 15 Jun 2026 08:14:44 -0700 Subject: [PATCH] reticulum - Added ET_DEVICE_LORA to environment --- overlay/opt/emcomm-tools/bin/et-common | 3 ++- overlay/opt/emcomm-tools/bin/et-reticulum | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-common b/overlay/opt/emcomm-tools/bin/et-common index 104e998..7947a30 100755 --- a/overlay/opt/emcomm-tools/bin/et-common +++ b/overlay/opt/emcomm-tools/bin/et-common @@ -1,7 +1,7 @@ #!/bin/bash # Author : Gaston Gonzalez # Date : 1 February 2025 -# Updated : 16 April 2026 +# Updated : 15 June 2026 # Purpose : Common environment variables and functions # Standardized device paths for supported hardware @@ -9,6 +9,7 @@ export ET_DEVICE_AUDIO="/dev/et-audio" export ET_DEVICE_CAT="/dev/et-cat" export ET_DEVICE_GPS="/dev/et-gps" export ET_DEVICE_SDR="/dev/et-sdr" +export ET_DEVICE_LORA="/dev/et-lora" # Standardized configuration locations and files export ET_HOME="/opt/emcomm-tools" diff --git a/overlay/opt/emcomm-tools/bin/et-reticulum b/overlay/opt/emcomm-tools/bin/et-reticulum index 8b6b869..e48b0ec 100755 --- a/overlay/opt/emcomm-tools/bin/et-reticulum +++ b/overlay/opt/emcomm-tools/bin/et-reticulum @@ -144,7 +144,7 @@ sed -i "s|{{ET_CALLSIGN}}|${CALLSIGN}|g" ${RETICULUM_CONF_FILE} ############################################################ # 1. Enable/disable intereface based on PnP device detection -if [[ -e /dev/et-lora ]]; then +if [[ -e "${ET_DEVICE_LORA}" ]]; then INTERFACE_RNODE_ENABLED="yes" else INTERFACE_RNODE_ENABLED="no" @@ -153,7 +153,7 @@ sed -i "s|{{ET_RETICULUM_INTERFACE_RNODE_ENABLED}}|${INTERFACE_RNODE_ENABLED}|g" # 2. Determine max power settings et-log "Connecting to device to determine max power..." -INTERFACE_RNODE_TXPOWER=`rnodeconf -i /dev/et-lora | awk -F': ' '/Max TX power/ {print $2}' | awk '{print $1}'` +INTERFACE_RNODE_TXPOWER=`rnodeconf -i ${ET_DEVICE_LORA} | awk -F': ' '/Max TX power/ {print $2}' | awk '{print $1}'` if [[ $? -ne 0 ]]; then INTERFACE_RNODE_TXPOWER=${INTERFACE_RNODE_TXPOWER_DEFAULT} et-log "Can't determine max power. Using defaulting ${INTERFACE_RNODE_TXPOWER}."