retiuclum - Added support to dynamically enable/disable modem73 depending on the system state

This commit is contained in:
thetechprepper
2026-06-28 16:46:46 -07:00
parent f5fb54c885
commit 32179bd18d
3 changed files with 15 additions and 2 deletions
+13
View File
@@ -137,6 +137,19 @@ fi
et-log "Updating configuration for this session..."
############################################################
# MODEM73 interface updates
############################################################
# Enable/disable intereface based on PnP device detection
IS_MODEM73_RUNNING=`ps -ef | grep [m]odem73`
if [[ $? -eq 0 ]]; then
INTERFACE_MODEM73_ENABLED="yes"
else
INTERFACE_MODEM73_ENABLED="no"
fi
sed -i "s|{{ET_RETICULUM_INTERFACE_MODEM73_ENABLED}}|${INTERFACE_MODEM73_ENABLED}|g" ${RETICULUM_CONF_FILE}
############################################################
# AX.25 KISS (Packet Radio) interface updates
############################################################