From 2fe795274f05f5473570cdfe8551a3ab533d2093 Mon Sep 17 00:00:00 2001 From: Martin Selbmann Date: Tue, 22 Sep 2020 19:02:36 +0200 Subject: [PATCH] add onair video file --- buzzer.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buzzer.sh b/buzzer.sh index f3f091b..67d72da 100755 --- a/buzzer.sh +++ b/buzzer.sh @@ -24,6 +24,11 @@ cmdonairstat=0 while true; do if [ "$cmdonairstat" -eq 1 ]; then + + if $(command -v pgrep) "$pgrepplayer" > /dev/null; then + $(command -v pkill) "$pgrepplayer" + fi + cmdonairstat=0 fi @@ -46,6 +51,7 @@ while true; do if [ "$cmdonairstat" -eq 0 ]; then echo "On air!" + $(command -v $player) $playerparam --loop ~/RandomVideo/onair.mp4 cmdonairstat=1 fi