mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-mode - Minor fixes for mode state following pre-build 14 testing
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 6 October 2024
|
||||
# Updated : 6 November 2024
|
||||
# Updated : 7 November 2024
|
||||
# Purpose : Utility script for dumping system information
|
||||
|
||||
function usage() {
|
||||
@@ -170,6 +170,7 @@ case $1 in
|
||||
|
||||
;;
|
||||
et-mode)
|
||||
|
||||
SELECTED_MODE=$(cat "${HOME}/.config/emcomm-tools/et-mode")
|
||||
|
||||
MODE_ID_NONE="none"
|
||||
@@ -178,6 +179,12 @@ case $1 in
|
||||
MODE_ID_WINLINK_ARDOP="winlink-ardop"
|
||||
MODE_ID_WINLINK_PACKET="winlink-packet"
|
||||
|
||||
if [ ! -e /dev/et-audio ]; then
|
||||
echo "Run 'et-mode' to set"
|
||||
echo ${MODE_ID_NONE} > "${HOME}/.config/emcomm-tools/et-mode"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case ${SELECTED_MODE} in
|
||||
${MODE_ID_NONE})
|
||||
echo "Not selected"
|
||||
|
||||
Reference in New Issue
Block a user