Commit b4280ca1 authored by tonu@volk.internalnet's avatar tonu@volk.internalnet

Fixed processor detection script to be more portable

parent ec761d57
...@@ -652,21 +652,21 @@ if test -r /proc/cpuinfo ; then ...@@ -652,21 +652,21 @@ if test -r /proc/cpuinfo ; then
cpu_vendor=`$cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1` cpu_vendor=`$cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2 | head -1`
fi fi
if test "$cpu_vendor" = "AuthenticAMD"; then if test "$cpu_vendor" = "AuthenticAMD"; then
if test $cpu_family>=6; then if test $cpu_family -ge 6; then
cpu_set="athlon pentiumpro k5 pentium i486 i386"; cpu_set="athlon pentiumpro k5 pentium i486 i386";
elif test $cpu_family=5; then elif test $cpu_family -eq 5; then
cpu_set="k5 pentium i486 i386"; cpu_set="k5 pentium i486 i386";
elif test $cpu_family=4; then elif test $cpu_family -eq 4; then
cpu_set="i486 i386" cpu_set="i486 i386"
else else
cpu_set="i386" cpu_set="i386"
fi fi
elif test "$cpu_vendor" = "GenuineIntel"; then elif test "$cpu_vendor" = "GenuineIntel"; then
if test $cpu_family>=6; then if test $cpu_family -ge 6; then
cpu_set="pentiumpro pentium i486 i386"; cpu_set="pentiumpro pentium i486 i386";
elif test $cpu_family=5; then elif test $cpu_family -eq 5; then
cpu_set="pentium i486 i386"; cpu_set="pentium i486 i386";
elif test $cpu_family=4; then elif test $cpu_family -eq 4; then
cpu_set="i486 i386" cpu_set="i486 i386"
else else
cpu_set="i386" cpu_set="i386"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment