some bugfixes

This commit is contained in:
Martin Selbmann 2020-09-22 19:39:38 +02:00
parent 4670e6402a
commit a920253422
1 changed files with 1 additions and 2 deletions

View File

@ -34,8 +34,6 @@ while true; do
elif [ "$swupstat" -eq 1 ]; then
swupstat="$($cmdgpio read $swupgpio)"
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
$(command -v pkill) "$pgrepplayer"
fi
@ -53,6 +51,7 @@ while true; do
sleep 0.1
done
swupstat="$($cmdgpio read $swupgpio)"
$(command -v pkill) "$pgrepplayer"
echo "Off air!"
cmdonairstat=0