From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Tue, 03 Jul 2007 19:44:13 +0000 Subject: Re: ENV{DEVNAME} in remove rule? Message-Id: <200707032344.13814.arvidjaar@mail.ru> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============2141918286==" List-Id: References: <20070703171658.GB27375@server> In-Reply-To: <20070703171658.GB27375@server> To: linux-hotplug@vger.kernel.org --===============2141918286== Content-Type: multipart/signed; boundary="nextPart2610981.CAJZ4AQJFf"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart2610981.CAJZ4AQJFf Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 03 July 2007, Richard Michael wrote: > I thought I had a problem running path_id/usb_id to set those environment > variables (I don't remember which one sets them..), because the sysfs > entry was already gone. I think I misunderstood, maybe the variables > are set from when the device was created?=20 Yes. You have to import them (unless already done) on "add" event; those=20 values are stored in udev database and added to environment *before* rules= =20 are being processed on "remove" event. At least that is the theory :) You also can explicitly assign any environment variable on "add" and it sho= uld=20 be available as well on "remove". This allows you to mark any specific devi= ce=20 if you like. --nextPart2610981.CAJZ4AQJFf Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBGiqcNR6LMutpd94wRApYrAKCgSKBNSk9By8KG5DlwBSuCRpnTvQCgqPhY N9NttfeHe52XEx9dSbpJXKs= =ijXN -----END PGP SIGNATURE----- --nextPart2610981.CAJZ4AQJFf-- --===============2141918286== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ --===============2141918286== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel --===============2141918286==--