summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-tpm/recipes-tpm/trousers/files/trousers.init.sh2
1 files changed, 1 insertions, 1 deletions
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
27 start) 27 start)
28 echo "Starting $DESC: " 28 echo "Starting $DESC: "
29 29
30 if [ ! -e /dev/tpm* ] 30 if ! ls /dev/tpm* >/dev/null 2>&1
31 then 31 then
32 echo "device driver not loaded, skipping." 32 echo "device driver not loaded, skipping."
33 exit 0 33 exit 0