mirror of
https://github.com/linuxboot/heads.git
synced 2025-03-22 20:15:20 +00:00
non-hotp boards: skip Secrets App reset with hotp_verification if binary doesn't exit
nk3 was not tested on non-hotp boards. Make sure both htop_verification and nk3 is present before resetting Secrets App Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
parent
89a9c1b276
commit
e2d1a87809
@ -151,8 +151,9 @@ mount_boot() {
|
||||
|
||||
reset_nk3_secret_app() {
|
||||
TRACE_FUNC
|
||||
|
||||
# Reset Nitrokey 3 Secrets app with $ADMIN_PIN (default 12345678, or customised)
|
||||
if lsusb | grep -q "20a0:42b2"; then
|
||||
if lsusb | grep -q "20a0:42b2" && [ -x /bin/hotp_verification ]; then
|
||||
echo
|
||||
warn "Resetting Nitrokey 3's Secrets App with PIN. Physical presence (touch) will be required"
|
||||
# TODO: change message when https://github.com/Nitrokey/nitrokey-hotp-verification/issues/41 is fixed
|
||||
|
Loading…
x
Reference in New Issue
Block a user