All pastes #230088 Raw Edit

Mine

public text v1 · immutable
#230088 ·published 2006-10-31 02:55 UTC
rendered paste body
#!/bin/bash
if test -r "/proc/cpuinfo" ; then
    VENDO="`cat /proc/cpuinfo |
    grep 'vendor_id' | cut -d : -f2 | sed 's/ //g'`"
    if test "$VENDO" == "GenuineIntel" -o "$VENDO" == "AuthenticAMD" \
    -o "$VENDO" == "CyrixInstead" -o "$VENDO" == "UMC UMC UMC " \
    -o "$VENDO" == "CentaurHauls" -o "$VENDO" == "NexGenDriven" \
    -o "$VENDO" == "RiseRiseRise" -o "$VENDO" == "GenuineTMx86" \
    -o "$VENDO" == "TransmetaCPU"; then
        FAMILY="`cat /proc/cpuinfo | grep 'cpu family' | cut -d : -f 2 | sed 's/ //g'`86"
        echo "$FAMILY or clone."
    fi
fi