From 237f575611010bd53bcf264e4a9db3abdde2b30d Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Tue, 30 Jun 2026 12:24:34 -0700 Subject: [PATCH] modem73 - Removed settings file before each run to prevent inconsistent or incorrect configuration for ETC --- overlay/opt/emcomm-tools/bin/et-modem73 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-modem73 b/overlay/opt/emcomm-tools/bin/et-modem73 index a807094..bb32d1c 100755 --- a/overlay/opt/emcomm-tools/bin/et-modem73 +++ b/overlay/opt/emcomm-tools/bin/et-modem73 @@ -1,7 +1,7 @@ #!/bin/bash # # Author : Gaston Gonzalez -# Date : 28 June 2026 +# Date : 30 June 2026 # Purpose : Wrapper script for starting modem73 with PnP support # # Preconditions: @@ -10,7 +10,7 @@ # Postconditions: # 1. modem73 started with sane defaults -MODEM73_CONF_FILE=${ET_HOME}/conf/template.d/modem73/settings.default +MODEM73_CONF_FILE="${HOME}/.config/modem73/settings" usage() { echo "usage: $(basename $0) " @@ -77,6 +77,14 @@ start() { update_config () { + # The modem73 configuration file causes issues when using it in combination with + # command line arguments during manual runs. It is best to remove it before each + # run and drive the modem using only command line arguments. + if [[ -e "${MODEM73_CONF_FILE}" ]]; then + et-log "Removing previous configuration file: ${MODEM73_CONF_FILE}" + rm -v ${MODEM73_CONF_FILE} + fi + et-log "Attempting to start modem73 in mode: '${MODE}'" [ -z "$ET_USER_CONFIG" ] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json"