Skip to content

Commit

Permalink
reboot/poweroff: run nitropad-shutdown.sh for required boards
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Aug 30, 2023
1 parent a4c9df0 commit 0565780
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions initrd/bin/poweroff
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions initrd/bin/reboot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0565780

Please sign in to comment.