mirror of
https://github.com/linuxboot/heads.git
synced 2025-03-14 08:16:44 +00:00
initrd/bin/seal-hotpkey: fix regression of hotp_verification 1.7+ version bump output parsing for <nk3
As tested working with old librem key fw 0.10: works Log entry of additioanl 30 minutes for https://github.com/linuxboot/heads/pull/1875 (I cannot not fix with my time @jans23 https://github.com/linuxboot/heads/issues/1866, since nk3 is not the only dongle support by Heads) Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
d2b84597bf
commit
696ecf54cd
@ -108,7 +108,8 @@ if lsusb | grep -q "20a0:42b2"; then
|
||||
admin_pin_retries=$(echo "$hotp_token_info" | grep "Secrets app PIN counter:" | cut -d ':' -f 2 | tr -d ' ')
|
||||
prompt_message="Secrets app"
|
||||
else
|
||||
admin_pin_retries=$(echo "$hotp_token_info" | grep "Card counters: Admin" | cut -d ':' -f 2 | tr -d ' ')
|
||||
# <nk3
|
||||
admin_pin_retries=$(echo "$hotp_token_info" | grep "Card counters: Admin" | grep -o 'Admin [0-9]*' | grep -o '[0-9]*')
|
||||
prompt_message="GPG Admin"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user