PnP - Disabled full auto mode; Updated status messages for et-system-info for active-radio and et-cat commands

This commit is contained in:
Gaston Gonzalez
2024-10-10 05:48:41 -07:00
parent 2a9d30e06d
commit ec9b45883d
2 changed files with 8 additions and 11 deletions
+8 -3
View File
@@ -22,13 +22,18 @@ fi
case $1 in case $1 in
active-radio) active-radio)
if [ -L "${ET_HOME}/conf/radios.d/active-radio.json" ]; then if [ -L "${ET_HOME}/conf/radios.d/active-radio.json" ]; then
cat /opt/emcomm-tools/conf/radios.d/active-radio.json | jq -r .model cat "${ET_HOME}/conf/radios.d/active-radio.json" | jq -r .model
else else
echo "None" echo "No radio selected"
fi fi
;; ;;
et-cat) et-cat)
if [ ! -L "${ET_HOME}/conf/radios.d/active-radio.json" ]; then
echo "N/A"
exit 0
fi
# 1. Check if the symlink was created by the udev rules # 1. Check if the symlink was created by the udev rules
if [ -e /dev/et-cat ]; then if [ -e /dev/et-cat ]; then
@@ -44,7 +49,7 @@ case $1 in
echo "Connected. Can't access VFO"; echo "Connected. Can't access VFO";
fi fi
else else
echo "rigctld not running" echo "Connected. rigctld not running"
fi fi
else else
echo "Not connected"; echo "Not connected";
@@ -32,14 +32,6 @@ start() {
exit 1 exit 1
fi fi
# Attempt "full auto" plug-and-play for select devices
udevadm info ${CAT_DEVICE} | grep ET_DEVICE > /dev/null
if [ $? -eq 0 ]; then
et-log "Attempting full auto plug and play..."
ET_DEVICE=$(udevadm info ${CAT_DEVICE} | grep ET_DEVICE | cut -d"=" -f2)
do_full_auto $ET_DEVICE
fi
if [ ! -L ${ACTIVE_RADIO} ]; then if [ ! -L ${ACTIVE_RADIO} ]; then
et-log "No active radio defined. ${ACTIVE_RADIO} symlink is missing." et-log "No active radio defined. ${ACTIVE_RADIO} symlink is missing."
exit 1 exit 1