mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-07 19:34:26 +00:00
Add PID for Storage
This commit is contained in:
parent
30236ffbaa
commit
a224c43026
@ -70,9 +70,9 @@ gpg_key_reset()
|
||||
ERROR=`cat /tmp/gpg_card_edit_output`
|
||||
whiptail_error_die "GPG Key factory reset failed!\n\n$ERROR"
|
||||
fi
|
||||
# If NK Storage is inserted, reset AES keys as well
|
||||
if [ ! $(lsusb | grep -q "20a0:") ] && [ -x /bin/hotp_verification ] ; then
|
||||
/bin/hotp_verification regenerate ${ADMIN_PIN_DEF}
|
||||
# If Nitrokey Storage is inserted, reset AES keys as well
|
||||
if lsusb | grep -q "20a0:4109" && [ -x /bin/hotp_verification ] ; then
|
||||
/bin/hotp_verification regenerate ${ADMIN_PIN_DEF}
|
||||
fi
|
||||
# Generate OEM GPG keys
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user