switch to cvlc: some bugfixes
This commit is contained in:
parent
f8f416a05c
commit
2b853c151b
2 changed files with 7 additions and 6 deletions
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
folder="/mnt/video"
|
folder="/mnt/video"
|
||||||
player="cvlc"
|
player="cvlc"
|
||||||
playerparam=" -q"
|
playerparam="--quiet"
|
||||||
|
pgrepplayer="vlc"
|
||||||
|
|
||||||
swupgpio=23
|
swupgpio=23
|
||||||
swdowngpio=25
|
swdowngpio=25
|
||||||
|
@ -28,9 +29,9 @@ if [ "buzzer" != "$1" ] && [ "cron" != "$1" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $(command -v pgrep) "$player" > /dev/null; then
|
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
|
||||||
if [ "$1" = "buzzer" ]; then
|
if [ "$1" = "buzzer" ]; then
|
||||||
$(command -v pkill) "$player"
|
$(command -v pkill) "$pgrepplayer"
|
||||||
|
|
||||||
elif [ "$1" = "cron" ]; then
|
elif [ "$1" = "cron" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -5,7 +5,7 @@ strobogpio=2
|
||||||
swupgpio=23
|
swupgpio=23
|
||||||
swdowngpio=25
|
swdowngpio=25
|
||||||
|
|
||||||
player="cvlc"
|
pgrepplayer="vlc"
|
||||||
|
|
||||||
cmdgpio="$(command -v gpio)"
|
cmdgpio="$(command -v gpio)"
|
||||||
|
|
||||||
|
@ -36,8 +36,8 @@ while true; do
|
||||||
|
|
||||||
elif [ "$swupstat" -eq 1 ]; then
|
elif [ "$swupstat" -eq 1 ]; then
|
||||||
|
|
||||||
if $(command -v pgrep) "$player" > /dev/null; then
|
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
|
||||||
$(command -v pkill) "$player"
|
$(command -v pkill) "$pgrepplayer"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while [ "$swupstat" -eq 1 ]; do
|
while [ "$swupstat" -eq 1 ]; do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue