This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # Enable Num Lock before the LUKS passphrase prompt on CachyOS systems that use | |
| # mkinitcpio's systemd initramfs and Limine's mkinitcpio integration. | |
| readonly MKINITCPIO_CONF="/etc/mkinitcpio.conf" | |
| readonly INITCPIO_HOOK="/etc/initcpio/install/numlock" | |
| readonly INITRD_SERVICE="/etc/systemd/system/initrd-numlock.service" | |
| readonly BACKUP_SUFFIX="numlock-before" |