add onair video file

This commit is contained in:
Martin Selbmann 2020-09-22 19:02:36 +02:00
parent c61bae5219
commit 2fe795274f
1 changed files with 6 additions and 0 deletions

View File

@ -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