tpmc: add 'tpmversion' command
Add command for printing TPM version: 1.2 or 2.0. The command works
even when trunksd/tcsd is running and /dev/tpm0 is busy, so it can
be used to first determine which TPM we are dealing with, and then
select the right name of the daemon to stop based on that.
TEST=run 'tpmc tpmver'
Commit-Ready: Andrey Pronin <firstname.lastname@example.org>
Tested-by: Andrey Pronin <email@example.com>
Reviewed-by: Vadim Bendebury <firstname.lastname@example.org>
1 file changed