Re: [dev] cat unique deice identifier e.g. serial number
Greetings.
hiro wrote:
> 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
sudo dmidecode -s system-uuid
Of course you will need a fallback, if there is no DMI.
Sincerely,
Christoph Lohmann
Received on Wed Feb 08 2012 - 15:36:04 CET
This archive was generated by hypermail 2.3.0
: Wed Feb 08 2012 - 15:48:03 CET