new try for onair

This commit is contained in:
Martin Selbmann 2020-09-22 20:11:29 +02:00
parent a179151831
commit 9a74841c51
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ while true; do
while [ "$swupstat" -eq 1 ]; do
if [ "$cmdonairstat" -eq 0 ]; then
echo "On air!"
$(command -v $player) $playerparam ~/RandomVideo/onair.mp4
cmdonairstat=1
fi
@ -50,7 +50,7 @@ while true; do
sleep 0.1
done
echo "Off air!"
$(command -v pkill) "$pgrepplayer"
cmdonairstat=0
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then