reticulum - Added support to dynamically enable the RNode interface if the PnP subsystem detected the device

This commit is contained in:
thetechprepper
2026-06-14 18:24:55 -07:00
parent 510657d1c9
commit d3d5dfcd51
2 changed files with 10 additions and 6 deletions
@@ -117,7 +117,7 @@
# 20 dbm = 100 mW # 20 dbm = 100 mW
# 22 dbm = 158 mW # 22 dbm = 158 mW
# 28 dbm = 631 mW # 28 dbm = 631 mW
# 30 dbm = 1 wat # 30 dbm = 1 watt
txpower = 22 txpower = 22
#txpower = {{ET_RETICULUM_INTERFACE_RNODE_TXPOWER}} #txpower = {{ET_RETICULUM_INTERFACE_RNODE_TXPOWER}}
+9 -5
View File
@@ -67,18 +67,22 @@ fi
et-log "Linking new configuration..." et-log "Linking new configuration..."
ln -v -s "${ACTIVE_CONF_FILE}" "${RETICULUM_CONF_FILE}" ln -v -s "${ACTIVE_CONF_FILE}" "${RETICULUM_CONF_FILE}"
# Update replacement tokens
# Callsign # AX.25 KISS interface updates
[[ -z "$ET_USER_CONFIG" ]] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json" [[ -z "$ET_USER_CONFIG" ]] && ET_USER_CONFIG="${HOME}/.config/emcomm-tools/user.json"
CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign) CALLSIGN=$(cat ${ET_USER_CONFIG} | jq -r .callsign)
sed -i "s|{{ET_CALLSIGN}}|${CALLSIGN}|g" ${RETICULUM_CONF_FILE} sed -i "s|{{ET_CALLSIGN}}|${CALLSIGN}|g" ${RETICULUM_CONF_FILE}
# AX.25 KISS interface
sed -i "s|{{ET_RETICULUM_INTERFACE_AX25KISS_ENABLED}}|no|g" ${RETICULUM_CONF_FILE} sed -i "s|{{ET_RETICULUM_INTERFACE_AX25KISS_ENABLED}}|no|g" ${RETICULUM_CONF_FILE}
# RNode (LoRA) interface # RNode (LoRA) interface updates
sed -i "s|{{ET_RETICULUM_INTERFACE_RNODE_ENABLED}}|yes|g" ${RETICULUM_CONF_FILE} if [[ -e /dev/et-lora ]]; then
INTERFACE_RNODE_ENABLED="yes"
else
INTERFACE_RNODE_ENABLED="no"
fi
sed -i "s|{{ET_RETICULUM_INTERFACE_RNODE_ENABLED}}|${INTERFACE_RNODE_ENABLED}|g" ${RETICULUM_CONF_FILE}
CMD="rnsd" CMD="rnsd"