diff --git a/initrd/bin/gui-init b/initrd/bin/gui-init index 71cdb79c..7e3be63d 100755 --- a/initrd/bin/gui-init +++ b/initrd/bin/gui-init @@ -3,12 +3,6 @@ CONFIG_BOOT_GUI_MENU_NAME='Heads Boot Menu' -if [ -r /boot/kexec_hotp_key ]; then - CONFIG_HOTPKEY_BRANDING="$(cat /boot/kexec_hotp_key)" -else - CONFIG_HOTPKEY_BRANDING="HOTP USB security dongle" -fi - . /etc/functions . /tmp/config @@ -146,6 +140,13 @@ else mount_boot fi +# Use stored HOTP key branding +if [ -r /boot/kexec_hotp_key ]; then + CONFIG_HOTPKEY_BRANDING="$(cat /boot/kexec_hotp_key)" +else + CONFIG_HOTPKEY_BRANDING="HOTP USB Security Dongle" +fi + last_half=X while true; do MAIN_MENU_OPTIONS=""