Merge pull request #781 from MrChromebox/fix_hotp_id

seal-hotp: Fix HOTP key identification
This commit is contained in:
tlaurion 2020-07-25 22:54:44 -04:00 committed by GitHub
commit c89f67077c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,9 +68,9 @@ if ! hotp_verification info ; then
fi
# Set HOTP USB Security Dongle branding based on VID
if [ ! $(lsusb | grep -q "20a0:") ]; then
if lsusb | grep -q "20a0:" ; then
HOTPKEY_BRANDING="Nitrokey"
elif [ ! $(lsusb | grep -q "316d:") ]; then
elif lsusb | grep -q "316d:" ; then
HOTPKEY_BRANDING="Librem Key"
else
HOTPKEY_BRANDING="HOTP USB Security Dongle"