diff --git a/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh b/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh index 0ecf7cc..bf02302 100644 --- a/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh +++ b/meta-tpm/recipes-tpm/trousers/files/trousers.init.sh @@ -27,7 +27,7 @@ case "${1}" in start) echo "Starting $DESC: " - if [ ! -e /dev/tpm* ] + if ! ls /dev/tpm* >/dev/null 2>&1 then echo "device driver not loaded, skipping." exit 0