reboot/poweroff: run nitropad-shutdown.sh for required boards

This commit is contained in:
Markus Meissner 2023-05-23 14:25:03 +02:00
parent fabddb4f7a
commit a00aed50d7
No known key found for this signature in database
GPG Key ID: 44CB2D868DD16BDA
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,11 @@ if [ "$CONFIG_TPM" = "y" ]; then
tpmr shutdown
fi
# Run special EC-based poweroff for Nitropad-Nxx
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
/bin/nitropad-shutdown.sh
fi
# Sync all mounted filesystems
echo s > /proc/sysrq-trigger

View File

@ -8,6 +8,11 @@ if [ "$CONFIG_TPM" = "y" ]; then
tpmr shutdown
fi
# Run special EC-based poweroff for Nitropad-Nxx
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
/bin/nitropad-shutdown.sh
fi
# Sync all mounted filesystems
echo s > /proc/sysrq-trigger