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))