From a89d5a278021183d828263a3595b819700d4b071 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 24 Jul 2020 00:11:33 -0500 Subject: [PATCH] seal-hotp: Fix HOTP key identification With current implementation, Librem Keys with VID 0x316d are not identified properly; correct the if/else logic to resolve. Signed-off-by: Matt DeVillier --- initrd/bin/seal-hotpkey | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/initrd/bin/seal-hotpkey b/initrd/bin/seal-hotpkey index 3d116ad2..70b0e933 100755 --- a/initrd/bin/seal-hotpkey +++ b/initrd/bin/seal-hotpkey @@ -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"