From: Neil Bothwick <neil@digimed.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] serial in /sys
Date: Fri, 30 Nov 2012 10:00:23 +0000 [thread overview]
Message-ID: <20121130100023.340f4579@digimed.co.uk> (raw)
In-Reply-To: <CAKpSnp+5a5CbMiMH4rx4Acg5KTy1kF8ViL0iS_wysLfmH9uREA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 695 bytes --]
On Thu, 29 Nov 2012 19:07:11 +0000, Jorge Almeida wrote:
> This is indeed the device I meant, and the serial number is the
> "E68911000519" substring. But this symlink exists because udev created
> it. I need to somehow dig it out of /sys, not out of /dev. IOW, how did
> udev retrieved the information to create the symlink?
This is all done in /usr/lib/udev/rules.d/60-persistent-storage.rules
ENV{SERIAL} seems to be the key, but udev rules use variables rather than
accessing /sys directly.
I really like udev as it makes just about anything you want to do easy,
it's a shame to watch it getting lost.
--
Neil Bothwick
Does someone know the cheats for WindowsXP?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2012-11-30 10:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 17:57 [gentoo-user] serial in /sys Jorge Almeida
2012-11-29 18:35 ` Marco Bonfiglio
2012-11-29 19:07 ` Jorge Almeida
2012-11-29 22:09 ` Kevin Chadwick
2012-11-30 10:00 ` Neil Bothwick [this message]
2012-11-30 12:48 ` Jorge Almeida
2012-11-29 19:20 ` Bruce Hill
2012-11-29 19:31 ` Jorge Almeida
2012-11-29 20:20 ` Bruce Hill
2012-11-29 20:56 ` Jorge Almeida
2012-11-29 22:35 ` Walter Dnes
2012-11-30 0:28 ` Jorge Almeida
2012-11-30 3:09 ` Walter Dnes
2012-11-30 9:58 ` Jorge Almeida
2012-12-01 3:47 ` Walter Dnes
2012-12-01 4:55 ` Joshua Murphy
2012-12-01 9:11 ` Jorge Almeida
2012-12-01 9:08 ` Jorge Almeida
2012-11-30 0:56 ` James Cloos
2012-11-30 18:02 ` Volker Armin Hemmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121130100023.340f4579@digimed.co.uk \
--to=neil@digimed.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox