Fix Linux CPU feature detection in Debian chroot

pull/142/head
Jeffrey Walton 2016-02-13 20:25:14 -05:00
parent 283a018346
commit 054edb6c38
1 changed files with 1 additions and 1 deletions

View File

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