diff options
author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-11-23 14:33:14 +0100 |
---|---|---|
committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-11-23 14:33:14 +0100 |
commit | 6b4f37f910a3a883967c5a93a87ad4f4590925f0 (patch) | |
tree | 4fd60edd672805d6d1f89495dc188a157a2d996d | |
parent | cd890066f9677d0af4ba3f722e0f1c06751adccc (diff) |
-rw-r--r-- | elk.hook | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -37,8 +37,12 @@ run_hook() { fi stty -echo - printf 'Enter Decryption Password: ' - read password + while (true); do + printf 'Enter Decryption Password: ' + read password + echo "$password" | cryptsetup open "/dev/disk/by-uuid/${elkuuid}" elkdev && break + printf "\r" + done + printf "\nUSB Key Decryption Successful \033[1m[\033[0m \033[32mOK\033[0m \033[1m]\033[0m\n" stty echo - printf "$password" | cryptsetup open "/dev/disk/by-uuid/${elkuuid}" elkdev } |