Permalink
Browse files

Fix CPUs number for the XO-1.75

  • Loading branch information...
1 parent acc348e commit ee1a222fde1faeeb04ea8f79df2351d785fffc16 @mavrothal committed Jun 10, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 XOpup_kernel_builder.sh
View
@@ -28,7 +28,11 @@ git_clone_aufs2="$sources/aufs2-standalone"
git_clone_aufs3="$sources/aufs3-standalone"
union_patch="$sources/unionfs-2.5.11_for_3.3.*.diff"
patches="$BASEDIR/XO_kernel_patches"
-CPUs=`cat /proc/cpuinfo | grep "model name" | wc -l`
+if [ "`uname -m | grep -i armv7`" = "" ] ; then
+ CPUs=`cat /proc/cpuinfo | grep "model name" | wc -l`
+else
+ CPUs=`cat /proc/cpuinfo | grep Processor | wc -l`
+fi
#bit of fun! (curtesy of 01micko)
clear

0 comments on commit ee1a222

Please sign in to comment.