FTX-1 - Added initial PNP support for the Yaesu FTX-1 Field; Disablled brltty udev rules

This commit is contained in:
thetechprepper
2025-05-31 04:20:21 -07:00
parent 92d9950486
commit b9a212543a
6 changed files with 122 additions and 5 deletions
@@ -2,7 +2,7 @@
#
# Author : Gaston Gonzalez
# Date : 9 October 2024
# Updated : 28 October 2024
# Updated : 31 May 2025
# Purpose : Wrapper startup/shutdown script around systemd/rigctld
ET_HOME=/opt/emcomm-tools
@@ -41,8 +41,19 @@ start() {
ID=$(cat ${ET_HOME}/conf/radios.d/active-radio.json | jq -r .rigctrl.id)
PTT=$(cat ${ET_HOME}/conf/radios.d/active-radio.json | jq -r .rigctrl.ptt)
CMD="rigctld -m ${ID} -P ${PTT} "
et-log "Starting rigctld in VOX mode with: ${CMD}"
# Special case for select radios that only need to key the PTT, but do
# do not have CAT control support. This edge case was added for radios
# like the Yaesu FTX-1 Field before Yaesu published their CAT commands.
PTT_ONLY=$(cat ${ET_HOME}/conf/radios.d/active-radio.json | jq -r .rigctrl.pttOnly)
if [ "${PTT_ONLY}" = "true" ]; then
CMD="rigctld -m ${ID} -p ${CAT_DEVICE} -P ${PTT} "
et-log "Starting rigctld in PTT-only mode with: ${CMD}"
else
CMD="rigctld -m ${ID} -P ${PTT} "
et-log "Starting rigctld in VOX mode with: ${CMD}"
fi
$CMD
exit 0
fi