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