From 97428d47be10fd4413e7a920d46ed13786578e5d Mon Sep 17 00:00:00 2001 From: Gaston Gonzalez Date: Sun, 9 Feb 2025 09:36:49 -0700 Subject: [PATCH] VARA - Only all QtTermTCP to use VARA modems for terminal. Paracon does not support them as there is no AGE interface --- overlay/opt/emcomm-tools/bin/et-mode | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-mode b/overlay/opt/emcomm-tools/bin/et-mode index 21c3b35..3ec7c28 100755 --- a/overlay/opt/emcomm-tools/bin/et-mode +++ b/overlay/opt/emcomm-tools/bin/et-mode @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 6 November 2024 -# Updated : 8 February 2025 +# Updated : 9 February 2025 # Purpose : Configures the system for a specific mode of operation # Use a simple text file to save the state of the last mode selected @@ -101,12 +101,15 @@ select_term_mode () { term_mode+=("9600" "9600 baud (VHF/UHF)") term_mode+=("300" "300 baud (HF)") - if [ -e "${HOME}/.wine32/drive_c/VARA FM/VARAFM.exe" ]; then - term_mode+=("vara-fm" "VARA FM") - fi + # Only allow VARA terminal modes when using QtTermTCP + if [[ "${SELECTED_MODE}" == "${MODE_ID_BBS_CLIENT2}" ]]; then + if [ -e "${HOME}/.wine32/drive_c/VARA FM/VARAFM.exe" ]; then + term_mode+=("vara-fm" "VARA FM") + fi - if [ -e "${HOME}/.wine32/drive_c/VARA/VARA.exe" ]; then - term_mode+=("vara-hf" "VARA HF") + if [ -e "${HOME}/.wine32/drive_c/VARA/VARA.exe" ]; then + term_mode+=("vara-hf" "VARA HF") + fi fi TERM_MODE=$(dialog --clear --menu "Select a modem" 13 60 10 "${term_mode[@]}" 3>&1 1>&2 2>&3)