diff --git a/initrd/bin/poweroff b/initrd/bin/poweroff index 9e97d95c..a27da23b 100755 --- a/initrd/bin/poweroff +++ b/initrd/bin/poweroff @@ -9,7 +9,7 @@ if [ "$CONFIG_TPM" = "y" ]; then fi # Run special EC-based poweroff for Nitropad-Nxx -if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then +if [ "$CONFIG_BOARD" = "nitropad-nv41" ] || [ "$CONFIG_BOARD" = "nitropad-ns50" ]; then /bin/nitropad-shutdown.sh fi diff --git a/initrd/bin/reboot b/initrd/bin/reboot index eb63f253..26255f12 100755 --- a/initrd/bin/reboot +++ b/initrd/bin/reboot @@ -18,7 +18,7 @@ if [ "$CONFIG_TPM" = "y" ]; then fi # Run special EC-based poweroff for Nitropad-Nxx -if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 ] || [ "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then +if [ "$CONFIG_BOARD" = "nitropad-nv41" ] || [ "$CONFIG_BOARD" = "nitropad-ns50" ]; then /bin/nitropad-shutdown.sh fi