I'm trying to write a script that will automagically detect what kind of CPU the machine its running on has, for purposes of say, compiling a kernel optimized for that architecture. I'd like to identify a machine as one of:
Pentium MMX, Pentium II, Pentium III, Pentium IV, Athlon, Athlon XP
I'd ...