From 9a74841c5159896df3744c4d7362b02457088f9e Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Tue, 22 Sep 2020 20:11:29 +0200 Subject: [PATCH] new try for onair --- buzzer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buzzer.sh b/buzzer.sh index 1aa3d2e..69ef612 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -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