mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Dire Wolf - Fixed bug in et-direwolf. Added check to ensure that the systemd rigctld service is running before starting direwolf
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 1 November 2024
|
# Date : 1 November 2024
|
||||||
|
# Updated : 3 November 2024
|
||||||
# Purpose : Wrapper script for starting Dire Wolf with PnP support
|
# Purpose : Wrapper script for starting Dire Wolf with PnP support
|
||||||
#
|
#
|
||||||
# Preconditions:
|
# Preconditions:
|
||||||
@@ -55,6 +56,14 @@ start() {
|
|||||||
update-config
|
update-config
|
||||||
|
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
|
|
||||||
|
RIGCTLD_OUT=$(systemctl status rigctld)
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
et-log "Can't start Dire Wolf. rigctld not running. Ensure radio is selected."
|
||||||
|
notify_user "Can't start Dire Wolf. rigctld not running."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
CMD="direwolf -c ${DIREWOLF_CONF_FILE} -t 0 -p"
|
CMD="direwolf -c ${DIREWOLF_CONF_FILE} -t 0 -p"
|
||||||
et-log "Starting Dire Wolf with: '${CMD}'"
|
et-log "Starting Dire Wolf with: '${CMD}'"
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 11 October 2024
|
# Date : 11 October 2024
|
||||||
# Updated : 28 October 2024
|
# Updated : 3 November 2024
|
||||||
# Purpose : A script for managaing plug-and-play radios
|
# Purpose : A script for managaing plug-and-play radios
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
@@ -48,6 +48,9 @@ if [ $exit_status -eq 0 ]; then
|
|||||||
|
|
||||||
printf "\nConfiguration Notes\n"
|
printf "\nConfiguration Notes\n"
|
||||||
cat ${ACTIVE_RADIO} | jq -r '.notes[] | "* \(.)"'
|
cat ${ACTIVE_RADIO} | jq -r '.notes[] | "* \(.)"'
|
||||||
|
|
||||||
|
|
||||||
|
printf "\n** Plug in radio. If already connected, reconnect it.\n"
|
||||||
else
|
else
|
||||||
echo "No radio selected."
|
echo "No radio selected."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user