some bugfixes
This commit is contained in:
parent
61839d5e34
commit
4670e6402a
|
@ -34,6 +34,8 @@ 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
|
||||
|
@ -51,9 +53,9 @@ while true; do
|
|||
sleep 0.1
|
||||
done
|
||||
|
||||
$(command -v pkill) "$pgrepplayer"
|
||||
echo "Off air!"
|
||||
cmdonairstat=0
|
||||
$(command -v pkill) "$pgrepplayer"
|
||||
|
||||
elif [ "$buzzerstat" -eq 1 ] && [ "$swupstat" -eq 0 ]; then
|
||||
sleep 0.1
|
||||
|
|
Loading…
Reference in New Issue