some bugfixes

This commit is contained in:
Martin Selbmann 2020-09-22 19:36:01 +02:00
parent 61839d5e34
commit 4670e6402a
1 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,8 @@ while true; do
elif [ "$swupstat" -eq 1 ]; then
swupstat="$($cmdgpio read $swupgpio)"
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
$(command -v pkill) "$pgrepplayer"
fi
@ -51,9 +53,9 @@ while true; do
sleep 0.1
done
$(command -v pkill) "$pgrepplayer"
echo "Off air!"
cmdonairstat=0
$(command -v pkill) "$pgrepplayer"
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
sleep 0.1