From 2235d9eefca69125e0d9af59ead91ac0b7945d7b Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Fri, 15 May 2026 15:01:12 -0700 Subject: [PATCH] Reticulum - Added support for running MeshChat at 1200 baud packet from the Desktop Activities --- overlay/opt/emcomm-tools/bin/et-meshchat-app | 44 +++++++++++++++++++ .../applications/et-meshchat-1200.desktop | 11 +++++ scripts/install-meshchat.sh | 8 ++++ 3 files changed, 63 insertions(+) create mode 100755 overlay/opt/emcomm-tools/bin/et-meshchat-app create mode 100644 overlay/usr/share/applications/et-meshchat-1200.desktop diff --git a/overlay/opt/emcomm-tools/bin/et-meshchat-app b/overlay/opt/emcomm-tools/bin/et-meshchat-app new file mode 100755 index 0000000..2d369df --- /dev/null +++ b/overlay/opt/emcomm-tools/bin/et-meshchat-app @@ -0,0 +1,44 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 15 May 2026 +# Purpose : Wrapper script for starting MeshChat with PnP support +# +# Preconditions +# 1. Supported radio and audio interface are connected and properly detected +# +# Postconditions +# 1. Stop all running EmComm Tools modes +# 2. Start Dire Wolf in appropriate mode +# 3. Start Reticulum (rnsd) in appropriate mode +. /opt/emcomm-tools/bin/et-common + +usage() { + echo "usage: $(basename $0) " + echo " " + echo " 1200 - Run MeshChat with AX.25 interface over VHF/UHF (1200 baud)" + echo " 300 - Run MeshChat with AX.25 interface over HF (300 baud)" +} + +if [ $# -ne 1 ]; then + usage + exit 1 +fi + +et-kill-all + +MODE=$1 +case "${MODE}" in + "1200") + start_and_wait_for_service et-service-reticulum-1200 + ;; + "300") + start_and_wait_for_service et-service-reticulum-300 + ;; + *) + et-log "Unsupported mode." + exit 1 + ;; +esac + +et-meshchat diff --git a/overlay/usr/share/applications/et-meshchat-1200.desktop b/overlay/usr/share/applications/et-meshchat-1200.desktop new file mode 100644 index 0000000..a128eaf --- /dev/null +++ b/overlay/usr/share/applications/et-meshchat-1200.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Version=1.0 +Name=MeshChat 1200 +Comment=MeshChat over Reticulum using 1200 baud packet +Exec=/opt/emcomm-tools/bin/et-meshchat-app 1200 +Icon=/opt/ReticulumMeshChat-2.3.0/logo-chat-bubble.png +Terminal=false +X-MultipleArgs=false +Type=Application +Categories=Radio; +StartupNotify=true diff --git a/scripts/install-meshchat.sh b/scripts/install-meshchat.sh index 1074413..58fc536 100755 --- a/scripts/install-meshchat.sh +++ b/scripts/install-meshchat.sh @@ -1,6 +1,7 @@ #!/bin/bash # Author : Gaston Gonzalez # Date : 13 May 2026 +# Updated : 15 May 2026 # Purpose : Install MeshChat for Reticulum set -e trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG @@ -40,3 +41,10 @@ ${INSTALL_BIN_DIR}/${DOWNLOAD_FILE} EOF chmod -v 755 ${ET_WRAPPER_SCRIPT} + +ICON=logo-chat-bubble.png +ICON_URL="https://raw.githubusercontent.com/thetechprepper/reticulum-meshchat/master/logo/${ICON}" +download_with_retries ${ICON_URL} ${ICON} +mv ${ICON} ${INSTALL_DIR} + +cp ../overlay/usr/share/applications/et-meshchat-1200.desktop /usr/share/applications