switch to cvlc: some bugfixes

This commit is contained in:
Martin Selbmann 2020-09-22 18:25:58 +02:00
parent f8f416a05c
commit 2b853c151b
2 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,8 @@
folder="/mnt/video"
player="cvlc"
playerparam=" -q"
playerparam="--quiet"
pgrepplayer="vlc"
swupgpio=23
swdowngpio=25
@ -28,9 +29,9 @@ if [ "buzzer" != "$1" ] && [ "cron" != "$1" ]; then
exit 1
fi
if $(command -v pgrep) "$player" > /dev/null; then
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
if [ "$1" = "buzzer" ]; then
$(command -v pkill) "$player"
$(command -v pkill) "$pgrepplayer"
elif [ "$1" = "cron" ]; then
exit 1

View File

@ -5,7 +5,7 @@ strobogpio=2
swupgpio=23
swdowngpio=25
player="cvlc"
pgrepplayer="vlc"
cmdgpio="$(command -v gpio)"
@ -36,8 +36,8 @@ while true; do
elif [ "$swupstat" -eq 1 ]; then
if $(command -v pgrep) "$player" > /dev/null; then
$(command -v pkill) "$player"
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
$(command -v pkill) "$pgrepplayer"
fi
while [ "$swupstat" -eq 1 ]; do