mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
retiuclum - Added support to dynamically enable/disable modem73 depending on the system state
This commit is contained in:
@@ -26,6 +26,7 @@ the supported tokens below.
|
|||||||
ET_CALLSIGN
|
ET_CALLSIGN
|
||||||
ET_RETICULUM_INTERFACE_AUTO_ENABLED
|
ET_RETICULUM_INTERFACE_AUTO_ENABLED
|
||||||
ET_RETICULUM_INTERFACE_AX25KISS_ENABLED
|
ET_RETICULUM_INTERFACE_AX25KISS_ENABLED
|
||||||
|
ET_RETICULUM_INTERFACE_MODEM73_ENABLED
|
||||||
ET_RETICULUM_INTERFACE_RNODE_BANDWIDTH
|
ET_RETICULUM_INTERFACE_RNODE_BANDWIDTH
|
||||||
ET_RETICULUM_INTERFACE_RNODE_CODINGRATE
|
ET_RETICULUM_INTERFACE_RNODE_CODINGRATE
|
||||||
ET_RETICULUM_INTERFACE_RNODE_ENABLED
|
ET_RETICULUM_INTERFACE_RNODE_ENABLED
|
||||||
|
|||||||
+1
-2
@@ -129,9 +129,8 @@
|
|||||||
[[modem73]]
|
[[modem73]]
|
||||||
type = Modem73Interface
|
type = Modem73Interface
|
||||||
mode = roaming
|
mode = roaming
|
||||||
enabled = yes
|
enabled = {{ET_RETICULUM_INTERFACE_MODEM73_ENABLED}}
|
||||||
target_host = 127.0.0.1
|
target_host = 127.0.0.1
|
||||||
target_port = 8001
|
target_port = 8001
|
||||||
control_host = 127.0.0.1
|
control_host = 127.0.0.1
|
||||||
control_port = 8073
|
control_port = 8073
|
||||||
|
|
||||||
@@ -137,6 +137,19 @@ fi
|
|||||||
|
|
||||||
et-log "Updating configuration for this session..."
|
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
|
# AX.25 KISS (Packet Radio) interface updates
|
||||||
############################################################
|
############################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user