backup /etc/crypttab and /etc/default/grub for further reference
I'd recommend that the two files are not altered in place without keeping a backup of the original file.
I took a copy after reading the script before executing it to be able to follow up the changes the script made.
If for some reason the script didn't work it would help debugging and restoring the original state before execution.
edit: typo in subject