From 054edb6c38af977039cfbdd19d3439a7c4c45044 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 13 Feb 2016 20:25:14 -0500 Subject: [PATCH] Fix Linux CPU feature detection in Debian chroot --- cryptest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cryptest.sh b/cryptest.sh index d28dd2b5..57b8e6cb 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -180,7 +180,7 @@ fi CPU_COUNT=1 MEM_SIZE=1024 -if [ "$IS_LINUX" -ne "0" ]; then +if [ "$IS_LINUX" -ne "0" ] && [ -e "/proc/cpuinfo" ]; then CPU_COUNT=$(cat /proc/cpuinfo | grep -c '^processor') MEM_SIZE=$(cat /proc/meminfo | grep "MemTotal" | awk '{print $2}') MEM_SIZE=$(($MEM_SIZE/1024))