checking hardware type automatically

Matthew Palmer mjp16 at ieee.uow.edu.au
Wed Aug 8 05:22:12 CEST 2001


On Wed, 8 Aug 2001, Jens Ruehmkorf wrote:

> > That's why you don't use 2.2 kernels.  2.4 is much nicer.
> 
> And buggier. So far 2.4 is not going to be the default kernel for debian
> 3.0.

Yergh.

> > Another idea, which I just thought of, is using 'lspci -n' and hoping
> > that the different vendors (which use the same brand of PCI component)
> > are using different revisions of the same component.
> 
> Do revisions always have to be mentioned?

No, but they often are - the only device without a revision on the mobo on
this box is the 10Mb ethernet card (RTL8029 if you're interested).  Also,
they might be the same class and manufacturer, but a different model, as
distinguished by the number after the colon in the device ID (the yyyy in
Class zzzz: xxxx:yyyy)

> But you are right. Using the company id's from the MAC and a more detailed
> lspci -n probably gives Roland more possibilities to distinguish his
> hardware "out-of-the-box".

You could always ID the machine by a hash of it's device IDs... <g>  That'd
identify all the hardware in the machine in one fell swoop.  Not very
adaptable, though...


-- 
-----------------------------------------------------------------------
#include <disclaimer.h>
Matthew Palmer
mjp16 at ieee.uow.edu.au



More information about the linux-fai mailing list