switch: shutdown in time

Now it's more in sync with the display.
This commit is contained in:
Tobias Mueller 2023-10-17 10:16:10 +02:00
parent 2cf6495aad
commit 396ff7ea0e

View File

@ -120,11 +120,10 @@ sleep 5
i=5
/sbin/poweroff -d $i
until [[ $i -eq 0 ]]
do
i=$((i-1))
mcu_send_message "Shutting down... ($i)"
sleep 1
done
/sbin/poweroff -d 5