some bugfixes

This commit is contained in:
Martin Selbmann 2020-09-22 19:22:28 +02:00
parent b1956f805b
commit 7836973621
1 changed files with 4 additions and 3 deletions

View File

@ -26,9 +26,6 @@ while true; do
if [ "$cmdonairstat" -eq 1 ]; then
cmdonairstat=0
if $(command -v pgrep) "$pgrepplayer" > /dev/null; then
$(command -v pkill) "$pgrepplayer"
fi
fi
@ -57,6 +54,10 @@ while true; do
swupstat="$($cmdgpio read $swupgpio)"
if [ "$swupstat" -eq 0 ]; then
$(command -v pkill) "$pgrepplayer"
fi
sleep 0.1
done