Skip to content

Instantly share code, notes, and snippets.

@aristidb
Created October 19, 2014 20:36
Show Gist options
  • Save aristidb/a9484b3bbada43d600a9 to your computer and use it in GitHub Desktop.
Save aristidb/a9484b3bbada43d600a9 to your computer and use it in GitHub Desktop.
unlocker
#!/bin/sh
rm -f /run/crypted.key
mkfifo -m a=w,u=rw /run/crypted.key || exit 1
while ! cryptsetup open --type luks --key-file /run/crypted.key /dev/BLA decrypted
do
sleep 5
echo Try again...
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment