From 407778eb9a22ec9cb6b5e2d3e2865434681fcbd0 Mon Sep 17 00:00:00 2001 From: alex-nitrokey Date: Wed, 24 Jun 2020 16:16:03 +0200 Subject: [PATCH] Remove unintented paranthesis --- initrd/bin/gui-init | 4 ++-- initrd/bin/seal-libremkey | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/initrd/bin/gui-init b/initrd/bin/gui-init index 8b0197ce..26813b3e 100755 --- a/initrd/bin/gui-init +++ b/initrd/bin/gui-init @@ -199,7 +199,7 @@ while true; do enable_usb if ! libremkey_hotp_verification info ; then whiptail $CONFIG_WARNING_BG_COLOR --clear --title 'WARNING: Please Insert Your - $(CONFIG_HOTPKEY_BRANDING)' --msgbox "Your $(CONFIG_HOTPKEY_BRANDING) was not detected.\n\nPlease insert your $(CONFIG_HOTPKEY_BRANDING)" 30 90 + $CONFIG_HOTPKEY_BRANDING' --msgbox "Your $CONFIG_HOTPKEY_BRANDING was not detected.\n\nPlease insert your $CONFIG_HOTPKEY_BRANDING" 30 90 fi # Don't output HOTP codes to screen, so as to make replay attacks harder libremkey_hotp_verification check $HOTP @@ -212,7 +212,7 @@ while true; do MAIN_MENU_BG_COLOR=$CONFIG_ERROR_BG_COLOR ;; * ) - HOTP="Error checking code, Insert $(CONFIG_HOTPKEY_BRANDING) and retry" + HOTP="Error checking code, Insert $CONFIG_HOTPKEY_BRANDING and retry" MAIN_MENU_BG_COLOR=$CONFIG_WARNING_BG_COLOR ;; esac diff --git a/initrd/bin/seal-libremkey b/initrd/bin/seal-libremkey index e82f6794..2e5e0749 100755 --- a/initrd/bin/seal-libremkey +++ b/initrd/bin/seal-libremkey @@ -54,19 +54,19 @@ counter_value=1 enable_usb if ! libremkey_hotp_verification info ; then - echo "Insert your $(CONFIG_HOTPKEY_BRANDING) and press Enter to configure it" + echo "Insert your $CONFIG_HOTPKEY_BRANDING and press Enter to configure it" read if ! libremkey_hotp_verification info ; then # don't leak key on failure shred -n 10 -z -u "$HOTP_SECRET" 2> /dev/null - die "Unable to find $(CONFIG_HOTPKEY_BRANDING)" + die "Unable to find $CONFIG_HOTPKEY_BRANDING" fi fi # TODO find out branding now and set variable echo -e "" -read -s -p "Enter your $(CONFIG_HOTPKEY_BRANDING) Admin PIN: " admin_pin +read -s -p "Enter your $CONFIG_HOTPKEY_BRANDING Admin PIN: " admin_pin echo -e "\n" libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value @@ -102,7 +102,7 @@ echo $counter_value > $HOTP_COUNTER \ #|| die "Unable to create hotp counter file" mount -o remount,ro /boot -echo -e "\n$(CONFIG_HOTPKEY_BRANDING) initialized successfully. Press Enter to continue." +echo -e "\n$CONFIG_HOTPKEY_BRANDING initialized successfully. Press Enter to continue." read exit 0