diff --git a/initrd/bin/reboot b/initrd/bin/reboot index f226a927..eb63f253 100755 --- a/initrd/bin/reboot +++ b/initrd/bin/reboot @@ -18,8 +18,8 @@ if [ "$CONFIG_TPM" = "y" ]; then fi # Run special EC-based poweroff for Nitropad-Nxx -if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then - /bin/nitropad-shutdown.sh +if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 ] || [ "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then + /bin/nitropad-shutdown.sh fi # Sync all mounted filesystems