changeset 819:291de1f95724

Fixed cpu model detection with non-bash bourne shell
author eyck
date Thu, 17 May 2001 09:36:36 +0000
parents 16ba80b47ec4
children 977f2b788e61
files configure
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu May 17 09:17:16 2001 +0000
+++ b/configure	Thu May 17 09:36:36 2001 +0000
@@ -183,7 +183,6 @@
 
 # ---
 
-TAB=`echo -n -e "\t"`
 pname=`cat /proc/cpuinfo | grep 'model name' | cut -d ':' -f 2`
 pparam=`cat /proc/cpuinfo | grep 'features' | cut -d ':' -f 2`
 if [ -z "$pparam" ]; then
@@ -191,7 +190,7 @@
 fi
 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2  | cut -d ' ' -f 2`
 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2`
-pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2`
+pmodel=`cat /proc/cpuinfo |grep -v 'model name'| grep "model" | cut -d ':' -f 2 | cut -d ' ' -f 2`
 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2`
 
 _mmx=no