mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
FTX-1 - Added initial PNP support for the Yaesu FTX-1 Field; Disablled brltty udev rules
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user