tpm2-abrmd-init: fix for /dev/tpmrmX

In addition to the expected /dev/tpmX device nodes, newer Linux kernels now
also create /dev/tpmrmX nodes. This causes the daemon's startup script to
fail, meaning the abrmd daemon is not started automatically.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
Trevor Woerner
2018-06-06 09:28:14 -04:00
committed by Jia Zhang
parent e8df96cf47
commit b50b53dad2

View File

@@ -27,7 +27,7 @@ case "${1}" in
start)
echo -n "Starting $DESC: "
if [ ! -e /dev/tpm* ]
if [ ! -e /dev/tpm? ]
then
echo "device driver not loaded, skipping."
exit 0