From 68225b36e91baa1998611b59dd48b4c1cbe8abaa Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 23 Mar 2008 04:17:56 +0000 Subject: [PATCH] scripts/live-helpers: Cosmetic changes to loop-aes passphrase prompt --- scripts/live-helpers | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/live-helpers b/scripts/live-helpers index 807553a..203ee4c 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -178,9 +178,10 @@ setup_loop () do load_keymap - echo -n "Enter passphrase for ${fspath}: " >&6 + echo -n "Enter passphrase for root filesystem: " >&6 read -s passphrase echo "${passphrase}" > /tmp/passphrase + unset passphrase exec 9&6 + echo + echo -n "There was an error decrypting the root filesystem ... Retry? [Y/n] " >&6 read answer - if [ 'no' = "${answer}" ] + if [ "$(echo "${answer}" | cut -b1 | tr A-Z a-z)" = "n" ] then unset answer break