From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 5EDE31381F3 for ; Fri, 30 Nov 2012 10:02:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 867FA21C08D; Fri, 30 Nov 2012 10:02:03 +0000 (UTC) Received: from mail.digimed.co.uk (82-69-83-178.dsl.in-addr.zen.co.uk [82.69.83.178]) by pigeon.gentoo.org (Postfix) with ESMTP id F202821C05D for ; Fri, 30 Nov 2012 10:00:30 +0000 (UTC) Received: from digimed.co.uk (yooden.digimed.co.uk [192.168.1.6]) by mail.digimed.co.uk (Postfix) with ESMTPSA id 168D080B05 for ; Fri, 30 Nov 2012 10:00:29 +0000 (GMT) Date: Fri, 30 Nov 2012 10:00:23 +0000 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] serial in /sys Message-ID: <20121130100023.340f4579@digimed.co.uk> In-Reply-To: References: Organization: Digital Media Production X-Mailer: Claws Mail 3.9.0cvs30 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/MdwKf6Lw/YnlMXsb+bbl_ho"; protocol="application/pgp-signature" X-Archives-Salt: ce69e35b-2bb6-4137-8e7c-ed9b52986cca X-Archives-Hash: ec95dd3906112780e9bff7b9820e3274 --Sig_/MdwKf6Lw/YnlMXsb+bbl_ho Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. --=20 Neil Bothwick Does someone know the cheats for WindowsXP? --Sig_/MdwKf6Lw/YnlMXsb+bbl_ho Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAlC4g7wACgkQum4al0N1GQPZVQCeOYoZwAoVx9N4l+lmsukz/t4X wqMAnRXyIl6ROqn17QC6LOQEY9twAgsr =NOTO -----END PGP SIGNATURE----- --Sig_/MdwKf6Lw/YnlMXsb+bbl_ho--