Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] serial in /sys
Date: Fri, 30 Nov 2012 10:02:23
Message-Id: 20121130100023.340f4579@digimed.co.uk
In Reply to: Re: [gentoo-user] serial in /sys by Jorge Almeida
1 On Thu, 29 Nov 2012 19:07:11 +0000, Jorge Almeida wrote:
2
3 > This is indeed the device I meant, and the serial number is the
4 > "E68911000519" substring. But this symlink exists because udev created
5 > it. I need to somehow dig it out of /sys, not out of /dev. IOW, how did
6 > udev retrieved the information to create the symlink?
7
8 This is all done in /usr/lib/udev/rules.d/60-persistent-storage.rules
9
10 ENV{SERIAL} seems to be the key, but udev rules use variables rather than
11 accessing /sys directly.
12
13 I really like udev as it makes just about anything you want to do easy,
14 it's a shame to watch it getting lost.
15
16
17 --
18 Neil Bothwick
19
20 Does someone know the cheats for WindowsXP?

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] serial in /sys Jorge Almeida <jjalmeida@×××××.com>