mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-23 23:02:26 +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
|
[ $GPG_KEY_COUNT -ne 0 ] && return
|
||||||
|
|
||||||
# check for USB security token
|
# check for USB security token
|
||||||
if [ "$CONFIG_HOTPKEY" = "y" ]; then
|
if [ -x /bin/hotp_verification ]; then
|
||||||
if ! gpg --card-status > /dev/null ; then
|
if ! gpg --card-status > /dev/null ; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
@ -541,7 +541,7 @@ else
|
|||||||
HOTPKEY_BRANDING="HOTP USB Security Dongle"
|
HOTPKEY_BRANDING="HOTP USB Security Dongle"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CONFIG_HOTPKEY" = "y" ]; then
|
if [ -x /bin/hotp_verification ]; then
|
||||||
enable_usb
|
enable_usb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user