From 07ca1dd6f8cd6ff4f55d527d2e563a8e3ffcb245 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Fri, 29 Jul 2022 14:46:31 +0000 Subject: [PATCH] Use new setting: enableAudioScript --- root/scripts/start_audio.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/root/scripts/start_audio.sh b/root/scripts/start_audio.sh index 0246f82..b3c78fc 100644 --- a/root/scripts/start_audio.sh +++ b/root/scripts/start_audio.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [ $enableAudioScript != true ]; then + echo "Extended Audio script disabled, enable by setting parameter: enableAudioScript=true" + exit +fi + echo "Starting Script...." processstartid="$(ps -A -o pid,cmd|grep "/config/extended/scripts/start_audio.sh" | grep -v grep | head -n 1 | awk '{print $1}')" echo "To kill script, use the following command:"