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

From: hiro <23hiro_AT_googlemail.com>
Date: Wed, 8 Feb 2012 14:19:28 +0100

s/stuff/hardware (drivers)/

On 08.02.2012, hiro <23hiro_AT_googlemail.com> wrote:
> It evolved from a *non*-unique hardware identification which triggered
> automatic kernel module downloads. Was too difficult, so I'm back to
> doing everything manually again. Although this means some machines
> with different ids load the same list of stuff.
> No real overhead, because most stuff is buggy, thus needs special care
> anyway.
>
> On 08.02.2012, Premysl Hruby <dfenze_AT_gmail.com> wrote:
>> On 08/02/12 12:50, 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
>>>
>>
>> Btw, why not cat /sys/bus/pci/devices/*/modalias | sha1sum instead of
>> for cycle? :-)
>>
>> -Ph
>>
>>
>
Received on Wed Feb 08 2012 - 14:19:28 CET

This archive was generated by hypermail 2.3.0 : Wed Feb 08 2012 - 14:24:07 CET