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
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