From 58c0ca36a5af8f6f584ff62af42da8f14d25267e Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Thu, 9 Oct 2025 06:43:26 -0700 Subject: [PATCH 1/7] TX-500MP - Added finer control for defining per radio audio levels that are user configurable. The generic approach for treating all DigiRig devices globally the same was problematic. The new audio.script configuration property is optional --- overlay/opt/emcomm-tools/bin/et-audio | 24 ++++++++++-- .../conf/radios.d/audio/lab599-tx500mp.sh | 38 +++++++++++++++++++ .../conf/radios.d/lab599-tx500mp.json | 3 ++ scripts/install-emcomm-tools.sh | 6 ++- 4 files changed, 67 insertions(+), 4 deletions(-) create mode 100755 overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh diff --git a/overlay/opt/emcomm-tools/bin/et-audio b/overlay/opt/emcomm-tools/bin/et-audio index 4aa9062..705f2eb 100755 --- a/overlay/opt/emcomm-tools/bin/et-audio +++ b/overlay/opt/emcomm-tools/bin/et-audio @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 31 October 2024 -# Updated : 5 October 2025 +# Updated : 9 October 2025 # Purpose : Configures ET audio device with sane defaults # # Preconditions @@ -10,6 +10,7 @@ # # Postconditions # 1. ALSA settings set on ET audio device +. /opt/emcomm-tools/bin/et-common usage() { echo "usage: $(basename $0) " @@ -48,10 +49,27 @@ update-config () { et-log "Updating audio device: '${ET_DEVICE_NAME}' (${FULL_AUDIO_DEVICE})' for ALSA PnP configuration." + # Handle audio settings specifically if defined in the radio configuration + AUDIO_INIT_SCRIPT=$(jq -r -e '.audio.script' ${ET_ACTIVE_RADIO_CONF}) + if [[ $? -eq 0 ]]; then + et-log "Executing audio configuration script: ${AUDIO_INIT_SCRIPT}" + + CMD="${AUDIO_INIT_SCRIPT} ${AUDIO_CARD} ${AUDIO_DEVICE}" + et-log "Running command: ${CMD}" + ${CMD} + + if [[ $? -ne 0 ]]; then + et-log "Audio init script ${AUDIO_INIT_SCRIPT} failed. Can't start application." + notify-user "Audio init script failed. Can't start application." + exit 1 + fi + + exit 0 + fi + + # Handle audio generically for most sound card interfaces case ${ET_DEVICE_NAME} in "DIGIRIG_MOBILE") - # TODO: 92% is needed for the TX-500MP. Revisit approach for setting speaker - # out differently across radios definitions. # Unmute Speaker a set volume. Adjust if remote station can't decode you. Your TX controls. amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 42% unmute # Unmute Mic diff --git a/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh b/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh new file mode 100755 index 0000000..9922176 --- /dev/null +++ b/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 9 October 2025 +# Purpose : Audio settings specific to the Lab599 TX-500MP +# +# Preconditions +# 1. Supported audio interface is connected and properly detected +# +# Postconditions +# 1. ALSA settings set on ET audio device + +usage() { + echo "usage: $(basename $0) " +} + +if [[ $# -ne 2 ]]; then + usage + exit 1 +fi + +AUDIO_CARD=$1 +ET_DEVICE_NAME=$2 + +# Unmute Speaker and set the volume to 81. Adjust if the remote station +# can't decode you or if there is not output power on TX. +amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 92% unmute + +# Unmute Mic +amixer -q -c ${AUDIO_CARD} sset Mic Playback Switch 52% unmute + +# Set "L/R Capture" to 19. Adjust if you can't decode received audio. +amixer -q -c ${AUDIO_CARD} sset Mic Capture Switch 31% unmute + +# Disable Auto Gain Control +amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute + +et-log "Applied amixer settings for audio card ${AUDIO_CARD} on device ${ET_DEVICE_NAME}" diff --git a/overlay/opt/emcomm-tools/conf/radios.d/lab599-tx500mp.json b/overlay/opt/emcomm-tools/conf/radios.d/lab599-tx500mp.json index 63331ac..773d60e 100644 --- a/overlay/opt/emcomm-tools/conf/radios.d/lab599-tx500mp.json +++ b/overlay/opt/emcomm-tools/conf/radios.d/lab599-tx500mp.json @@ -8,6 +8,9 @@ "ptt": "RTS", "pttOnly": "false" }, + "audio": { + "script": "/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh" + }, "notes": [ "1. Set MENU 36 CAT PROTOCOL = TS2000", "2. Set MODE = DIGI", diff --git a/scripts/install-emcomm-tools.sh b/scripts/install-emcomm-tools.sh index 186544a..745ce6a 100755 --- a/scripts/install-emcomm-tools.sh +++ b/scripts/install-emcomm-tools.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 6 October 2024 -# Updated : 1 November 2024 +# Updated : 9 October 2025 # Purpose : Install EmComm Tools applications et-log "Installing EmComm Tools applications..." @@ -18,6 +18,10 @@ chgrp -v -R $ET_GROUP $ET_HOME/conf/radios.d chmod -v 775 $ET_HOME/conf/radios.d chmod -v 664 $ET_HOME/conf/radios.d/*.json +chgrp -v -R $ET_GROUP $ET_HOME/conf/radios.d/audio +chmod -v 775 $ET_HOME/conf/radios.d/audio +chmod -v 664 $ET_HOME/conf/radios.d/audio/*.sh + chgrp -v -R $ET_GROUP $ET_HOME/conf/template.d/packet chmod -v 775 $ET_HOME/conf/template.d/packet chmod -v 664 $ET_HOME/conf/template.d/packet/*.conf From 61e28e52b5bc884d2a4012a50ae51e497d1f4df0 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Mon, 13 Oct 2025 11:24:23 -0700 Subject: [PATCH 2/7] Xiegu X6100 - Replaced audio setings for the X6100 to use the new audio script approach. --- overlay/opt/emcomm-tools/bin/et-audio | 14 +------ overlay/opt/emcomm-tools/bin/et-radio | 4 +- .../conf/radios.d/audio/lab599-tx500mp.sh | 2 +- .../conf/radios.d/audio/xiegu-x6100.sh | 38 +++++++++++++++++++ .../conf/radios.d/xiegu-x6100.json | 3 ++ 5 files changed, 45 insertions(+), 16 deletions(-) create mode 100755 overlay/opt/emcomm-tools/conf/radios.d/audio/xiegu-x6100.sh diff --git a/overlay/opt/emcomm-tools/bin/et-audio b/overlay/opt/emcomm-tools/bin/et-audio index 705f2eb..be89593 100755 --- a/overlay/opt/emcomm-tools/bin/et-audio +++ b/overlay/opt/emcomm-tools/bin/et-audio @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 31 October 2024 -# Updated : 9 October 2025 +# Updated : 13 October 2025 # Purpose : Configures ET audio device with sane defaults # # Preconditions @@ -128,18 +128,6 @@ update-config () { # Disable Auto Gain Control amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute - et-log "Applied amixer settings for ${ET_DEVICE_NAME}" - ;; - "X6100") - # Unmute Speaker a set volume. Adjust if remote station can't decode you. - amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 42% unmute - # Unmute Mic - amixer -q -c ${AUDIO_CARD} sset Mic Playback Switch 52% unmute - # Set "L/R Capture" to 19. Adjust if you can't decode received audio. - amixer -q -c ${AUDIO_CARD} sset Mic Capture Switch 31% unmute - # Disable Auto Gain Control - amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute - et-log "Applied amixer settings for ${ET_DEVICE_NAME}" ;; *) diff --git a/overlay/opt/emcomm-tools/bin/et-radio b/overlay/opt/emcomm-tools/bin/et-radio index e049fcf..54c4e8e 100755 --- a/overlay/opt/emcomm-tools/bin/et-radio +++ b/overlay/opt/emcomm-tools/bin/et-radio @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 11 October 2024 -# Updated : 16 March 2025 +# Updated : 13 March 2025 # Purpose : A script for managaing plug-and-play radios source /opt/emcomm-tools/bin/et-common @@ -18,7 +18,7 @@ while IFS= read -r radio; do MODEL=$(cat $radio | jq -r .model) options+=("$ID" "$VENDOR $MODEL") -done < <(find $ET_HOME/conf/radios.d -type f | grep -v "bt.json" | sort) +done < <(find $ET_HOME/conf/radios.d -type f -name \*.json | grep -v "bt.json" | sort) SELECTED_RADIO=$(dialog --clear --menu "Select a radio:" 21 60 10 "${options[@]}" 3>&1 1>&2 2>&3) exit_status=$? diff --git a/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh b/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh index 9922176..93c7dbf 100755 --- a/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh +++ b/overlay/opt/emcomm-tools/conf/radios.d/audio/lab599-tx500mp.sh @@ -23,7 +23,7 @@ AUDIO_CARD=$1 ET_DEVICE_NAME=$2 # Unmute Speaker and set the volume to 81. Adjust if the remote station -# can't decode you or if there is not output power on TX. +# can't decode you or if there is no output power on TX. amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 92% unmute # Unmute Mic diff --git a/overlay/opt/emcomm-tools/conf/radios.d/audio/xiegu-x6100.sh b/overlay/opt/emcomm-tools/conf/radios.d/audio/xiegu-x6100.sh new file mode 100755 index 0000000..4829db5 --- /dev/null +++ b/overlay/opt/emcomm-tools/conf/radios.d/audio/xiegu-x6100.sh @@ -0,0 +1,38 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 13 October 2025 +# Purpose : Audio settings specific to the Xiegu X6100 +# +# Preconditions +# 1. Supported audio interface is connected and properly detected +# +# Postconditions +# 1. ALSA settings set on ET audio device + +usage() { + echo "usage: $(basename $0) " +} + +if [[ $# -ne 2 ]]; then + usage + exit 1 +fi + +AUDIO_CARD=$1 +ET_DEVICE_NAME=$2 + +# Unmute Speaker and set the volume to 27. Adjust if the remote station +# can't decode you or if there is no output power on TX. +amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 42% unmute + +# Unmute Mic +amixer -q -c ${AUDIO_CARD} sset Mic Playback Switch 52% unmute + +# Set "L/R Capture" to 19. Adjust if you can't decode received audio. +amixer -q -c ${AUDIO_CARD} sset Mic Capture Switch 31% unmute + +# Disable Auto Gain Control +amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute + +et-log "Applied amixer settings for audio card ${AUDIO_CARD} on device ${ET_DEVICE_NAME}" diff --git a/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json b/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json index 2550b68..274cba9 100644 --- a/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json +++ b/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json @@ -8,6 +8,9 @@ "ptt": "RIG", "conf": "timeout=1000,retry=1,timeout_retry=1", "primeRig": true + }, + "audio": { + "script": "/opt/emcomm-tools/conf/radios.d/audio/xiegu-x6100.sh" }, "notes": [ "Turn on radio", From 8191498a4fa32164a47ad1e26b01482595fa94f5 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Mon, 13 Oct 2025 12:02:09 -0700 Subject: [PATCH 3/7] FX-4CR - Replaced audio setings for the FX-4CR to use the new audio script approach. --- overlay/opt/emcomm-tools/bin/et-audio | 13 ------- .../conf/radios.d/audio/bg2fx-fx4cr.sh | 35 +++++++++++++++++++ .../conf/radios.d/bg2fx-fx4cr.json | 3 ++ .../conf/radios.d/xiegu-x6100.json | 2 +- 4 files changed, 39 insertions(+), 14 deletions(-) create mode 100755 overlay/opt/emcomm-tools/conf/radios.d/audio/bg2fx-fx4cr.sh diff --git a/overlay/opt/emcomm-tools/bin/et-audio b/overlay/opt/emcomm-tools/bin/et-audio index be89593..cdc5046 100755 --- a/overlay/opt/emcomm-tools/bin/et-audio +++ b/overlay/opt/emcomm-tools/bin/et-audio @@ -117,19 +117,6 @@ update-config () { et-log "Applied amixer settings for ${ET_DEVICE_NAME}" ;; - "FX-4CR") - # Unmute the PCM and set the volume to 21% to get the full output power. This value is - # dependent on the settings defined for the FX-4CR in the et-radio notes. - amixer -q -c ${AUDIO_CARD} sset 'PCM' 31% unmute - - # Set "L/R Capture" to 55%. Adjust if you can't decode received audio. - amixer -q -c ${AUDIO_CARD} sset 'Mic' 67% unmute - - # Disable Auto Gain Control - amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute - - et-log "Applied amixer settings for ${ET_DEVICE_NAME}" - ;; *) et-log "No ALSA configuration specified for this ET_DEVICE." ;; diff --git a/overlay/opt/emcomm-tools/conf/radios.d/audio/bg2fx-fx4cr.sh b/overlay/opt/emcomm-tools/conf/radios.d/audio/bg2fx-fx4cr.sh new file mode 100755 index 0000000..458e611 --- /dev/null +++ b/overlay/opt/emcomm-tools/conf/radios.d/audio/bg2fx-fx4cr.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 13 October 2025 +# Purpose : Audio settings specific to the FX-4CR +# +# Preconditions +# 1. Supported audio interface is connected and properly detected +# +# Postconditions +# 1. ALSA settings set on ET audio device + +usage() { + echo "usage: $(basename $0) " +} + +if [[ $# -ne 2 ]]; then + usage + exit 1 +fi + +AUDIO_CARD=$1 +ET_DEVICE_NAME=$2 + +# Unmute the PCM and set the volume to 21% to get the full output power. This value is +# dependent on the settings defined for the FX-4CR in the et-radio notes. +amixer -q -c ${AUDIO_CARD} sset 'PCM' 31% unmute + +# Set "L/R Capture" to 55%. Adjust if you can't decode received audio. +amixer -q -c ${AUDIO_CARD} sset 'Mic' 67% unmute + +# Disable Auto Gain Control +amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute + +et-log "Applied amixer settings for audio card ${AUDIO_CARD} on device ${ET_DEVICE_NAME}" diff --git a/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json b/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json index 6c39035..cc4c407 100644 --- a/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json +++ b/overlay/opt/emcomm-tools/conf/radios.d/bg2fx-fx4cr.json @@ -9,6 +9,9 @@ "conf": "data_bits=8,serial_handshake=None,stop_bits=1,rts_state=OFF", "pttOnly": "false" }, + "audio": { + "script": "/opt/emcomm-tools/conf/radios.d/audio/bg2fx-fx4cr.sh" + }, "notes": [ "Short press [PWR], then rotate AF knob until POW = 5.0", "Toggle [SSB] button until both USB and DIG appear", diff --git a/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json b/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json index 274cba9..3e71fa6 100644 --- a/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json +++ b/overlay/opt/emcomm-tools/conf/radios.d/xiegu-x6100.json @@ -9,7 +9,7 @@ "conf": "timeout=1000,retry=1,timeout_retry=1", "primeRig": true }, - "audio": { + "audio": { "script": "/opt/emcomm-tools/conf/radios.d/audio/xiegu-x6100.sh" }, "notes": [ From f59e865ffe356d8a749d37f044de061d1f02432a Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Mon, 13 Oct 2025 12:06:53 -0700 Subject: [PATCH 4/7] hamlib - Rolling back to hamlib 4.5 as version 4.6.5 seems to have introduced a bug in which the first client connection takes several seconds to initialize. This causes problems for some rig control clients such as JS8Call. --- scripts/install-hamlib.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install-hamlib.sh b/scripts/install-hamlib.sh index 174745f..3a22533 100755 --- a/scripts/install-hamlib.sh +++ b/scripts/install-hamlib.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 25 November 2022 -# Updated : 6 October 2025 +# Updated : 13 October 2025 # Purpose : Install hamlib for rig control (rigctld) set -e trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG @@ -12,7 +12,11 @@ trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR . ../overlay/opt/emcomm-tools/bin/et-common APP="hamlib" -VERSION=4.6.5 +# The latest verion of Hamlib 4.6.5 has a problem with initial client +# connections that can lead to rig control timeouts in applications like +# JS8Call. Rolling back to version 4.5 which was stable. +#VERSION=4.6.5 +VERSION=4.5 APP_AND_VERSION="${APP}-${VERSION}" INSTALL_DIR="/opt/${APP_AND_VERSION}" LINK_PATH="/opt/${APP}" From f019e613f61ebaf1d05fc54c02b5d26bbbb01e76 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Tue, 14 Oct 2025 07:33:37 -0700 Subject: [PATCH 5/7] YAAC - Added JVM arguments to allow for large raw OSM imports to complete. --- overlay/opt/emcomm-tools/bin/et-yaac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-yaac b/overlay/opt/emcomm-tools/bin/et-yaac index 02b4a68..d9c7c31 100755 --- a/overlay/opt/emcomm-tools/bin/et-yaac +++ b/overlay/opt/emcomm-tools/bin/et-yaac @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 3 November 2024 -# Updated : 16 March 2025 +# Updated : 13 October 2025 # Purpose : Wrapper script for starting YAAC with PnP support # # Preconditions: @@ -40,7 +40,7 @@ start() { update-config if [[ $? -eq 0 ]]; then - CMD="java -jar /opt/yaac/YAAC.jar" + CMD="java -Xms2g -Xmx6g -XX:+UseG1GC -jar /opt/yaac/YAAC.jar" PS_OUT=$(ps -ef | grep "[r]fcomm0") if [[ $? -eq 0 ]]; then From 88bd825abd072db4e9af3198f9eda8ff4e6141af Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Tue, 14 Oct 2025 07:49:38 -0700 Subject: [PATCH 6/7] FT-857D - Replaced audio setings for the Yaesu FT-857D to use the new audio script approach. --- .../conf/radios.d/audio/yaesu-ft857d.sh | 37 +++++++++++++++++++ .../conf/radios.d/yaesu-ft857d.json | 3 ++ 2 files changed, 40 insertions(+) create mode 100755 overlay/opt/emcomm-tools/conf/radios.d/audio/yaesu-ft857d.sh diff --git a/overlay/opt/emcomm-tools/conf/radios.d/audio/yaesu-ft857d.sh b/overlay/opt/emcomm-tools/conf/radios.d/audio/yaesu-ft857d.sh new file mode 100755 index 0000000..847b2bf --- /dev/null +++ b/overlay/opt/emcomm-tools/conf/radios.d/audio/yaesu-ft857d.sh @@ -0,0 +1,37 @@ +#!/bin/bash +# +# Author : Gaston Gonzalez +# Date : 14 October 2025 +# Purpose : Audio settings specific to the Yaesu FT-857D via DigiRig Mobile +# +# Preconditions +# 1. Supported audio interface is connected and properly detected +# +# Postconditions +# 1. ALSA settings set on ET audio device + +usage() { + echo "usage: $(basename $0) " +} + +if [[ $# -ne 2 ]]; then + usage + exit 1 +fi + +AUDIO_CARD=$1 +ET_DEVICE_NAME=$2 + +# Unmute Speaker a set volume. Adjust if remote station can't decode you. Your TX controls. +amixer -q -c ${AUDIO_CARD} sset Speaker Playback Switch 42% unmute + +# Unmute Mic +amixer -q -c ${AUDIO_CARD} sset Mic Playback Switch 52% unmute + +# Set "L/R Capture" to 19. Adjust if you can't decode received audio. Your RX controls. +amixer -q -c ${AUDIO_CARD} sset Mic Capture Switch 25% unmute + +# Disable Auto Gain Control +amixer -q -c ${AUDIO_CARD} sset 'Auto Gain Control' mute + +et-log "Applied amixer settings for audio card ${AUDIO_CARD} on device ${ET_DEVICE_NAME}" diff --git a/overlay/opt/emcomm-tools/conf/radios.d/yaesu-ft857d.json b/overlay/opt/emcomm-tools/conf/radios.d/yaesu-ft857d.json index f52d8fc..e0036db 100644 --- a/overlay/opt/emcomm-tools/conf/radios.d/yaesu-ft857d.json +++ b/overlay/opt/emcomm-tools/conf/radios.d/yaesu-ft857d.json @@ -7,6 +7,9 @@ "baud": "38400", "ptt": "RTS" }, + "audio": { + "script": "/opt/emcomm-tools/conf/radios.d/audio/yaesu-ft857d.sh" + }, "notes": [ "Menu 019 CAT RATE = 38400", "Menu 020 CAT = CAT", From c9f8ea6f4381c493cdb2fd145331ca893d3adb28 Mon Sep 17 00:00:00 2001 From: thetechprepper Date: Tue, 14 Oct 2025 14:48:05 -0700 Subject: [PATCH 7/7] formatting - Replaced tabs with spaces --- overlay/opt/emcomm-tools/bin/et-audio | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/overlay/opt/emcomm-tools/bin/et-audio b/overlay/opt/emcomm-tools/bin/et-audio index cdc5046..4008962 100755 --- a/overlay/opt/emcomm-tools/bin/et-audio +++ b/overlay/opt/emcomm-tools/bin/et-audio @@ -54,17 +54,17 @@ update-config () { if [[ $? -eq 0 ]]; then et-log "Executing audio configuration script: ${AUDIO_INIT_SCRIPT}" - CMD="${AUDIO_INIT_SCRIPT} ${AUDIO_CARD} ${AUDIO_DEVICE}" - et-log "Running command: ${CMD}" - ${CMD} + CMD="${AUDIO_INIT_SCRIPT} ${AUDIO_CARD} ${AUDIO_DEVICE}" + et-log "Running command: ${CMD}" + ${CMD} - if [[ $? -ne 0 ]]; then - et-log "Audio init script ${AUDIO_INIT_SCRIPT} failed. Can't start application." - notify-user "Audio init script failed. Can't start application." - exit 1 - fi + if [[ $? -ne 0 ]]; then + et-log "Audio init script ${AUDIO_INIT_SCRIPT} failed. Can't start application." + notify-user "Audio init script failed. Can't start application." + exit 1 + fi - exit 0 + exit 0 fi # Handle audio generically for most sound card interfaces