- if grep -q '/root/keyscript-manual' /etc/crypttab; then
- sed -i --follow-symlinks 's#/root/keyscript,#/root/keyscript-manual,#' /etc/crypttab
- update-initramfs -u
+ x=/root/keyscript
+ if grep -q "${x}," /etc/crypttab; then
+ $sed -i "s#${x},#decrypt_keyctl,#" /etc/crypttab
+ update-initramfs -u