mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
PnP - Initial work to get the DigiRig Mobile to work with a radio (HT or mobile) that does not support CAT. Note: This mode does not yet work as there are issues using the RTS signal to key the PTT while the Hamlib radio ID is to 1 (test mode).
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 11 October 2024
|
||||
# Updated : 24 October 2024
|
||||
# Updated : 25 October 2024
|
||||
# Purpose : A script for managaing plug-and-play radios
|
||||
set -e
|
||||
|
||||
@@ -23,14 +23,14 @@ ACTIVE_RADIO="${ET_HOME}/conf/radios.d/active-radio.json"
|
||||
case $1 in
|
||||
list)
|
||||
|
||||
printf "%-20s %-10s %-10s\n" "Radio ID" "Vendor" "Model"
|
||||
printf "%-24s %-10s %-10s\n" "Radio ID" "Vendor" "Model"
|
||||
|
||||
find ${ET_HOME}/conf/radios.d -type f -name \*.json | sort -n | while read radio; do
|
||||
ID=$(cat $radio | jq -r .id)
|
||||
VENDOR=$(cat $radio | jq -r .vendor)
|
||||
MODEL=$(cat $radio | jq -r .model)
|
||||
|
||||
printf "%-20s %-10s %-10s\n" $ID "$VENDOR" "$MODEL"
|
||||
printf "%-24s %-10s %-10s\n" $ID "$VENDOR" "$MODEL"
|
||||
done
|
||||
|
||||
;;
|
||||
@@ -48,7 +48,7 @@ case $1 in
|
||||
options+=("$ID" "$VENDOR $MODEL")
|
||||
done < <(find $ET_HOME/conf/radios.d -type f | sort)
|
||||
|
||||
SELECTED_RADIO=$(dialog --clear --menu "Select a radio:" 15 50 10 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||
SELECTED_RADIO=$(dialog --clear --menu "Select a radio:" 20 60 10 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||
exit_status=$?
|
||||
|
||||
# Reset terminal to its original state
|
||||
|
||||
Reference in New Issue
Block a user