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
+18 -1
View File
@@ -1,7 +1,7 @@
#!/bin/bash
# Author : Gaston Gonzalez
# Date : 11 October 2024
# Updated : 8 December 2024
# Updated : 21 May 2025
# Purpose : Perform tests that can be used by the udev subsystem to aid
# in rule development. This is intended to by used with the PROGRAM
# directive inside of a udev rule.
@@ -13,6 +13,20 @@
ET_HOME=/opt/emcomm-tools
ACTIVE_RADIO="${ET_HOME}/conf/radios.d/active-radio.json"
# Exit with a 0 exit status if, and only if, the currently selected radio is
# a Yaesu FTX-1.
test_yaesu_ftx1() {
if [ -L "${ET_HOME}/conf/radios.d/active-radio.json" ]; then
ID=$(cat "${ET_HOME}/conf/radios.d/active-radio.json" | jq -r .id)
if [[ "$ID" == "yaesu-ftx1" ]]; then
exit 0
fi
fi
exit 1
}
# Exit with a 0 exit status if, and only if, the currently selected radio is
# a Yaesu FT-891.
test_yaesu_ft891() {
@@ -82,6 +96,9 @@ if [ $# -ne 1 ]; then
fi
case $1 in
yaesu-ftx1)
test_yaesu_ftx1
;;
yaesu-ft891)
test_yaesu_ft891
;;