diff --git a/initrd/bin/seal-libremkey b/initrd/bin/seal-libremkey index 4551aab1..c1dab8e6 100755 --- a/initrd/bin/seal-libremkey +++ b/initrd/bin/seal-libremkey @@ -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