# # Author Antoine Martin # Copyright (c) 2016 Antoine Martin # Release v0.5.1-4 decrypt # #!/bin/bash build() { local mod add_module dm-crypt if [[ $CRYPTO_MODULES ]]; then for mod in $CRYPTO_MODULES; do add_module "$mod" done else add_all_modules '/crypto/' fi add_binary "cryptsetup" add_binary "dmsetup" add_binary "mount" add_binary "egrep" add_binary "lsblk" add_binary "sed" add_binary "bash" add_binary "tput" add_file "/usr/lib/udev/rules.d/10-dm.rules" add_file "/usr/lib/udev/rules.d/13-dm-disk.rules" add_file "/usr/lib/udev/rules.d/95-dm-notify.rules" add_file "/usr/share/terminfo/l/linux" "/usr/lib/terminfo/l/linux" add_file "/usr/lib/initcpio/udev/11-dm-initramfs.rules" "/usr/lib/udev/rules.d/11-dm-initramfs.rules" add_file "/usr/lib/initcpio/hooks/decrypt.sh" "/usr/bin/decrypt" add_runscript } help() { cat <