1 2 3 4 5 6
#!/bin/sh [ -b /dev/mapper/$2 ] && exit 0 echo -n test >/keyfile /sbin/cryptsetup luksOpen $1 $2 </keyfile