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 <email@example.com>
Tested-by: Andrey Pronin <firstname.lastname@example.org>
Reviewed-by: Vadim Bendebury <email@example.com>
1 file changed