Skip to content

Commit a1c13ff

Browse files
committed
nitropad-nx: fix EC-based poweroff/reboot
Signed-off-by: Markus Meissner <coder@safemailbox.de>
1 parent 65abba9 commit a1c13ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

initrd/bin/poweroff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ "$CONFIG_TPM" = "y" ]; then
99
fi
1010

1111
# Run special EC-based poweroff for Nitropad-Nxx
12-
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
12+
if [ "$CONFIG_BOARD" = "nitropad-nv41" ] || [ "$CONFIG_BOARD" = "nitropad-ns50" ]; then
1313
/bin/nitropad-shutdown.sh
1414
fi
1515

initrd/bin/reboot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$CONFIG_TPM" = "y" ]; then
1818
fi
1919

2020
# Run special EC-based poweroff for Nitropad-Nxx
21-
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 ] || [ "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
21+
if [ "$CONFIG_BOARD" = "nitropad-nv41" ] || [ "$CONFIG_BOARD" = "nitropad-ns50" ]; then
2222
/bin/nitropad-shutdown.sh
2323
fi
2424

0 commit comments

Comments
 (0)