some bugfixes
This commit is contained in:
parent
b1956f805b
commit
7836973621
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue