Update a utility to support the new tpm sysfs class directory
authorBryan Freed <bfreed@chromium.org>
Thu, 7 Jan 2016 17:11:58 +0000 (09:11 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 7 Jan 2016 22:29:42 +0000 (14:29 -0800)
commitfd2b02abbf1c61f3887a0e4409dc7599a943c1f4
tree1664fcdea0967c7560afca90e38634cd30ab3d8b
parent58cb8c532b0909edb34d17c7fd32b0559b917eb9
Update a utility to support the new tpm sysfs class directory

Kernel TPM patches from 4.x moved /sys/class/misc/tpm0 to /sys/class/tpm/tpm0.
Support both paths in this utility.

BUG=chromium:573368
BRANCH=none
TEST=untested, not sure if this utility is still used.

Change-Id: Ib81476eee4c9de921502a3a47f6990b9e6b1968b
Reviewed-on: https://chromium-review.googlesource.com/320892
Commit-Ready: Bryan Freed <bfreed@chromium.org>
Tested-by: Bryan Freed <bfreed@chromium.org>
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
utility/tpm-dad-lock