it builds (without watchdog)

This commit is contained in:
Miguel Fuertes committed 2025-10-17 16:27:48 +02:00
1 parent 85a0959a06
commit d9c2631d45
3 files changed
+19 -3

No files matched your search

+9 -1
View File
@@ -38,7 +38,15 @@ SECONDS=3
[ "${ACTION}" = "released" ] && [ "${SEEN}" -ge "${SECONDS}" ] && {
logger "Power held for ${SEEN}s: Shutting down system"
poweroff &
# Apaga el backlight
echo 1 > /sys/class/backlight/*/brightness 2>/dev/null || true
# Apaga el framebuffer
echo 1 > /sys/class/graphics/fb0/blank 2>/dev/null || true
sync
poweroff
exit 0
}