some bugfixes

This commit is contained in:
Martin Selbmann 2020-09-22 19:39:38 +02:00
parent 4670e6402a
commit a920253422

View file

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