mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-radio Improved the end-users instructions
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 11 October 2024
|
||||
# Updated : 3 November 2024
|
||||
# Updated : 10 November 2024
|
||||
# Purpose : A script for managaing plug-and-play radios
|
||||
set -e
|
||||
|
||||
@@ -10,6 +10,11 @@ ACTIVE_RADIO="${ET_HOME}/conf/radios.d/active-radio.json"
|
||||
|
||||
NO_RADIO_ID="no-radio"
|
||||
|
||||
YELLOW="\033[1;33m"
|
||||
GREEN="\033[0;32m"
|
||||
RED="\033[0;31m"
|
||||
NC="\033[0m"
|
||||
|
||||
options=()
|
||||
options+=("${NO_RADIO_ID}" "No radio")
|
||||
while IFS= read -r radio; do
|
||||
@@ -44,13 +49,19 @@ if [ $exit_status -eq 0 ]; then
|
||||
MODEL=$(cat ${ACTIVE_RADIO} | jq -r .model)
|
||||
|
||||
printf "%-20s %-10s %-10s\n" "Radio ID" "Vendor" "Model"
|
||||
printf "%-20s %-10s %-10s\n" $ID "$VENDOR" "$MODEL"
|
||||
printf "%-20s %-10s %-10s\n\n" $ID "$VENDOR" "$MODEL"
|
||||
|
||||
printf "\nConfiguration Notes\n"
|
||||
printf "${YELLOW}RADIO CONFIGURATION NOTES\n"
|
||||
cat ${ACTIVE_RADIO} | jq -r '.notes[] | "* \(.)"'
|
||||
echo -e "${NC}"
|
||||
|
||||
|
||||
printf "\n** Plug in radio. If already connected, reconnect it.\n"
|
||||
printf "${GREEN}REQUIRED ACTIONS\n"
|
||||
printf "1. Apply the settings above to your radio.\n"
|
||||
printf "2. Plug in the USB cable for your radio. If it is already connected, reconnect it.\n"
|
||||
printf "3. Run 'et-mode' and select the desired mode of operation.\n\n"
|
||||
printf " Note: JS8Call does not require a mode to be selected.\n"
|
||||
echo -e "${NC}"
|
||||
else
|
||||
echo "No radio selected."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user