diff --git a/initrd/bin/gui-init b/initrd/bin/gui-init index 9f2dbb8f..bf1f89d9 100755 --- a/initrd/bin/gui-init +++ b/initrd/bin/gui-init @@ -148,10 +148,10 @@ prompt_update_checksums() fi } -generate_totp_htop() +generate_totp_hotp() { tpm_password="$1" # May be empty, will prompt if needed and empty - TRACE "Under /bin/gui-init:generate_totp_htop" + TRACE "Under /bin/gui-init:generate_totp_hotp" echo "Scan the QR code to add the new TOTP secret" if /bin/seal-totp "$BOARD_NAME" "$tpm_password"; then if [ -x /bin/hotp_verification ]; then @@ -208,7 +208,7 @@ update_totp() g ) if (whiptail $BG_COLOR_WARNING --title 'Generate new TOTP/HOTP secret' \ --yesno "This will erase your old secret and replace it with a new one!\n\nDo you want to proceed?" 0 80) then - generate_totp_htop && update_totp && BG_COLOR_MAIN_MENU="" + generate_totp_hotp && update_totp && BG_COLOR_MAIN_MENU="" fi ;; i ) @@ -480,7 +480,7 @@ show_tpm_totp_hotp_options_menu() option=$(cat /tmp/whiptail) case "$option" in g ) - generate_totp_htop + generate_totp_hotp ;; r ) reset_tpm @@ -562,7 +562,7 @@ reset_tpm() || die "Unable to create rollback file" mount -o ro,remount /boot - generate_totp_htop "$key_password" + generate_totp_hotp "$key_password" else echo "Returning to the main menu" fi