mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-23 14:52:27 +00:00
Merge pull request #1130 from marmarek/early-usb
Check for /bin/hotp_verification instead of CONFIG_HOTPKEY
This commit is contained in:
commit
70b93be782
@ -249,7 +249,7 @@ clean_boot_check()
|
||||
[ $GPG_KEY_COUNT -ne 0 ] && return
|
||||
|
||||
# check for USB security token
|
||||
if [ "$CONFIG_HOTPKEY" = "y" ]; then
|
||||
if [ -x /bin/hotp_verification ]; then
|
||||
if ! gpg --card-status > /dev/null ; then
|
||||
return
|
||||
fi
|
||||
@ -541,7 +541,7 @@ else
|
||||
HOTPKEY_BRANDING="HOTP USB Security Dongle"
|
||||
fi
|
||||
|
||||
if [ "$CONFIG_HOTPKEY" = "y" ]; then
|
||||
if [ -x /bin/hotp_verification ]; then
|
||||
enable_usb
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user