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:
@@ -73,7 +73,7 @@ options+=("${MODE_ID_WINLINK_ARDOP}" "Winlink ARDOP")
|
||||
options+=("${MODE_ID_WINLINK_PACKET}" "Winlink Packet")
|
||||
|
||||
# Prompt user for option and save exit status
|
||||
SELECTED_MODE=$(dialog --clear --menu "Select a mode:" 20 60 10 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||
SELECTED_MODE=$(dialog --clear --menu "Select a mode:" 30 40 10 "${options[@]}" 3>&1 1>&2 2>&3)
|
||||
exit_status=$?
|
||||
|
||||
tput sgr 0 && clear
|
||||
@@ -82,6 +82,8 @@ if [ $exit_status -eq 0 ]; then
|
||||
|
||||
stop_all_services
|
||||
|
||||
echo ${SELECTED_MODE} > ${MODE_STATUS_FILE}
|
||||
|
||||
case ${SELECTED_MODE} in
|
||||
${MODE_ID_NONE})
|
||||
et-log "No mode selected"
|
||||
@@ -110,7 +112,6 @@ if [ $exit_status -eq 0 ]; then
|
||||
;;
|
||||
esac
|
||||
|
||||
echo ${SELECTED_MODE} > ${MODE_STATUS_FILE}
|
||||
|
||||
else
|
||||
et-log "No mode selected"
|
||||
|
||||
Reference in New Issue
Block a user