This commit is contained in:
Martin Selbmann 2020-09-22 20:27:36 +02:00
parent d3b2afcfb1
commit 0dd9b558af
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,6 @@ cmdonairstat=0
while true; do
if [ "$cmdonairstat" -eq 1 ]; then
$(command -v pkill) "$pgrepplayer"
cmdonairstat=0
fi
@ -46,7 +45,7 @@ while true; do
while [ "$swupstat" -eq 1 ]; do
if [ "$cmdonairstat" -eq 0 ]; then
$(command -v $player) $playerparam --loop ~/RandomVideo/onair.mp4
echo "on air"
cmdonairstat=1
fi
@ -55,6 +54,8 @@ while true; do
sleep 0.1
done
echo "off air"
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
sleep 0.1