[ltp] recognising a thinkpad

Helmut Hullen linux-thinkpad@linux-thinkpad.org
16 Jul 2008 09:06:00 +0200


Hallo, Richard,

Du (rn214) meintest am 16.07.08:

>> how can I let recognise the system if it runs on a thinkpad (here:
>> mostly T2x, 1 T40)?


> I think I'd suggest you look at the output of lspci -vvv   and
>     hwinfo --bios.  On the two machines I have, one T60p, and one
> desktop machine, the following test works:

> if sudo hwinfo --bios | grep -iq thinkpad  ; then
>      echo ImAThinkPad
> else
>      echo NotAThinkpad
> fi


        lspci -vvv | grep Subsystem | grep -iq Thinkpad

may do the same job - I'll try them both.
Thank you!

Viele Gruesse!
Helmut