mirror of
https://github.com/srlabs/blue-merle.git
synced 2024-12-22 05:44:59 -05:00
switch: shutdown in time
Now it's more in sync with the display.
This commit is contained in:
parent
2cf6495aad
commit
396ff7ea0e
@ -120,11 +120,10 @@ sleep 5
|
|||||||
|
|
||||||
|
|
||||||
i=5
|
i=5
|
||||||
|
/sbin/poweroff -d $i
|
||||||
until [[ $i -eq 0 ]]
|
until [[ $i -eq 0 ]]
|
||||||
do
|
do
|
||||||
i=$((i-1))
|
i=$((i-1))
|
||||||
mcu_send_message "Shutting down... ($i)"
|
mcu_send_message "Shutting down... ($i)"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
/sbin/poweroff -d 5
|
|
||||||
|
Loading…
Reference in New Issue
Block a user