Hello Guillem, Thanks for your suggested improvement to the cryptmount init.d script, and for your helpful patch.
I have just released version 5.2.1 of cryptmount, which incorporates your improvements. I hope this will soon be available as a Debian package. Kind regards, RW Penney