From 396ff7ea0e2c309ca40fb89a6b9e241f9fc61a8f Mon Sep 17 00:00:00 2001 From: Tobias Mueller Date: Tue, 17 Oct 2023 10:16:10 +0200 Subject: [PATCH] switch: shutdown in time Now it's more in sync with the display. --- files/usr/bin/blue-merle-switch | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/usr/bin/blue-merle-switch b/files/usr/bin/blue-merle-switch index 93e5b91..58af8fd 100755 --- a/files/usr/bin/blue-merle-switch +++ b/files/usr/bin/blue-merle-switch @@ -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