I have in the /etc/init.d/trousers this:
[ ! -e /dev/tpm* ]
And it still gets errors like: /etc/init.d/trousers: 32: [: /dev/tpm0: unexpected operator
Because there are two such files in /dev:
# ls /dev/tpm* /dev/tpm0 /dev/tpmrm0
I have in the /etc/init. d/trousers this:
[ ! -e /dev/tpm* ]
And it still gets errors like: d/trousers: 32: [: /dev/tpm0: unexpected operator
/etc/init.
Because there are two such files in /dev:
# ls /dev/tpm*
/dev/tpm0 /dev/tpmrm0