mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-20 09:16:21 +00:00
seal-libremkey: add newlines for readability
improve readability of console output by adding newlines as needed Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
This commit is contained in:
parent
94f7f98022
commit
db5d282a7b
@ -59,12 +59,15 @@ if ! libremkey_hotp_verification info ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
read -s -p "Enter your Librem Key Admin PIN" admin_pin
|
||||
echo
|
||||
echo -e ""
|
||||
read -s -p "Enter your Librem Key Admin PIN: " admin_pin
|
||||
echo -e "\n"
|
||||
|
||||
libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value
|
||||
if [ $? -ne 0 ]; then
|
||||
read -s -p "Error setting HOTP secret, re-enter Admin PIN and try again:" admin_pin
|
||||
echo -e "\n"
|
||||
read -s -p "Error setting HOTP secret, re-enter Admin PIN and try again: " admin_pin
|
||||
echo -e "\n"
|
||||
if ! libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value ; then
|
||||
# don't leak key on failure
|
||||
shred -n 10 -z -u "$HOTP_SECRET" 2> /dev/null
|
||||
@ -91,7 +94,7 @@ echo $counter_value > $HOTP_COUNTER \
|
||||
#|| die "Unable to create hotp counter file"
|
||||
mount -o remount,ro /boot
|
||||
|
||||
echo "Librem Key initialized successfully. Press Enter to continue."
|
||||
echo -e "\nLibrem Key initialized successfully. Press Enter to continue."
|
||||
read
|
||||
|
||||
exit 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user