From d3279baa19027aca88dd26ec0d655757d09169be Mon Sep 17 00:00:00 2001 From: Marc Hillesheim Date: Fri, 28 Sep 2018 18:53:40 +0200 Subject: [PATCH] [script] Fix logic multiple audio devices warning --- .../files/opt/crankshaft/service_pacheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stage2/03-crankshaft-base/files/opt/crankshaft/service_pacheck.sh b/stage2/03-crankshaft-base/files/opt/crankshaft/service_pacheck.sh index 014442b3..9cea38d8 100755 --- a/stage2/03-crankshaft-base/files/opt/crankshaft/service_pacheck.sh +++ b/stage2/03-crankshaft-base/files/opt/crankshaft/service_pacheck.sh @@ -61,7 +61,7 @@ else echo "[${RED}${BOLD} WARN ${RESET}] Add an audio output device!" > /dev/tty3 echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3 else - if [ "$pa_device" != "" ]; then + if [ "$pa_device" == "" ]; then echo "${RESET}" > /dev/tty3 echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3 echo "[${RED}${BOLD} WARN ${RESET}] Pulseaudio has detected multiple outputs!" > /dev/tty3 @@ -126,7 +126,7 @@ else echo "[${RED}${BOLD} WARN ${RESET}] Add an audio input device!" > /dev/tty3 echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3 else - if [ "$pa_inputdevice" != "" ]; then + if [ "$pa_inputdevice" == "" ]; then echo "${RESET}" > /dev/tty3 echo "[${RED}${BOLD} WARN ${RESET}] *******************************************************" > /dev/tty3 echo "[${RED}${BOLD} WARN ${RESET}] Pulseaudio has detected multiple inputs!" > /dev/tty3