[dev] cat unique deice identifier e.g. serial number

From: hiro <23hiro_AT_googlemail.com>
Date: Wed, 8 Feb 2012 12:50:42 +0100

Anybody know a simple way to get a laptops device's serial number or
some other unique identifier which won''t identify all other same
models?

So far I came up with this:
( for MA in `ls /sys/bus/pci/devices/*/modalias`
        do
                cat "$MA";
        done
) | sha1sum
Received on Wed Feb 08 2012 - 12:50:42 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 08 2012 - 13:00:06 CET