Skip to content

Commit f4053db

Browse files
daringertlaurion
authored andcommitted
reboot/poweroff: run nitropad-shutdown.sh for required boards
1 parent baa48e0 commit f4053db

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

initrd/bin/poweroff

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ if [ "$CONFIG_TPM" = "y" ]; then
88
tpmr shutdown
99
fi
1010

11+
# Run special EC-based poweroff for Nitropad-Nxx
12+
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
13+
/bin/nitropad-shutdown.sh
14+
fi
15+
1116
# Sync all mounted filesystems
1217
echo s > /proc/sysrq-trigger
1318

initrd/bin/reboot

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ if [ "$CONFIG_TPM" = "y" ]; then
88
tpmr shutdown
99
fi
1010

11+
# Run special EC-based poweroff for Nitropad-Nxx
12+
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
13+
/bin/nitropad-shutdown.sh
14+
fi
15+
1116
# Sync all mounted filesystems
1217
echo s > /proc/sysrq-trigger
1318

0 commit comments

Comments
 (0)