From ab1ad48e9e9168e8e92d492edc20eb432261d3ab Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Tue, 22 Sep 2020 19:42:15 +0200 Subject: [PATCH] some bugfixes --- buzzer.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buzzer.sh b/buzzer.sh index 09a1e62..e9e6fd7 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -52,7 +52,12 @@ while true; do done swupstat="$($cmdgpio read $swupgpio)" - $(command -v pkill) "$pgrepplayer" + + + while $(command -v pgrep) "$pgrepplayer" > /dev/null; then + $(command -v pkill) "$pgrepplayer" + done + echo "Off air!" cmdonairstat=0