mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
reboot/poweroff: run nitropad-shutdown.sh for required boards
This commit is contained in:
parent
fabddb4f7a
commit
a00aed50d7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user