mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 10:46:44 +00:00
Remove unintented paranthesis
This commit is contained in:
parent
53b67d27a4
commit
407778eb9a
@ -199,7 +199,7 @@ while true; do
|
|||||||
enable_usb
|
enable_usb
|
||||||
if ! libremkey_hotp_verification info ; then
|
if ! libremkey_hotp_verification info ; then
|
||||||
whiptail $CONFIG_WARNING_BG_COLOR --clear --title 'WARNING: Please Insert Your
|
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
|
fi
|
||||||
# Don't output HOTP codes to screen, so as to make replay attacks harder
|
# Don't output HOTP codes to screen, so as to make replay attacks harder
|
||||||
libremkey_hotp_verification check $HOTP
|
libremkey_hotp_verification check $HOTP
|
||||||
@ -212,7 +212,7 @@ while true; do
|
|||||||
MAIN_MENU_BG_COLOR=$CONFIG_ERROR_BG_COLOR
|
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
|
MAIN_MENU_BG_COLOR=$CONFIG_WARNING_BG_COLOR
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -54,19 +54,19 @@ counter_value=1
|
|||||||
|
|
||||||
enable_usb
|
enable_usb
|
||||||
if ! libremkey_hotp_verification info ; then
|
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
|
read
|
||||||
if ! libremkey_hotp_verification info ; then
|
if ! libremkey_hotp_verification info ; then
|
||||||
# don't leak key on failure
|
# don't leak key on failure
|
||||||
shred -n 10 -z -u "$HOTP_SECRET" 2> /dev/null
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO find out branding now and set variable
|
# TODO find out branding now and set variable
|
||||||
|
|
||||||
echo -e ""
|
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"
|
echo -e "\n"
|
||||||
|
|
||||||
libremkey_hotp_initialize "$admin_pin" $HOTP_SECRET $counter_value
|
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"
|
#|| die "Unable to create hotp counter file"
|
||||||
mount -o remount,ro /boot
|
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
|
read
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user