X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=keyscript-off;h=1cf19b0d24e6c782216986421264c238ad1f1826;hb=6f1f8a104c9b38936ade2d27e835479523985133;hp=b26ed9d60961288b4de4ae22449572449d0b4fcb;hpb=343a048be4b32d18540c6531048d2b9a006774ae;p=distro-setup diff --git a/keyscript-off b/keyscript-off index b26ed9d..1cf19b0 100755 --- a/keyscript-off +++ b/keyscript-off @@ -23,10 +23,6 @@ if [[ $- != *i* ]]; then fi sed="sed --follow-symlinks" -if [[ $HOSTNAME == kw ]]; then - exit 0 -fi - if [[ $($sed -rn 's/^ID=(.*)/\1/p' /etc/os-release) == arch ]]; then if grep -q '^\s*FILES=' /etc/mkinitcpio.conf; then $sed -ri 's/^\s*FILES=/#\0/' /etc/mkinitcpio.conf # comment out @@ -35,7 +31,7 @@ if [[ $($sed -rn 's/^ID=(.*)/\1/p' /etc/os-release) == arch ]]; then else x=/root/keyscript if grep -q "${x}," /etc/crypttab; then - $sed -i "s#${x},#${x}-manual,#" /etc/crypttab + $sed -i "s#${x},#decrypt_keyctl,#" /etc/crypttab update-initramfs -u fi fi