From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Michael Date: Tue, 03 Jul 2007 18:17:52 +0000 Subject: Re: ENV{DEVNAME} in remove rule? Message-Id: <20070703181752.GK27375@server> List-Id: References: <20070703171658.GB27375@server> In-Reply-To: <20070703171658.GB27375@server> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Jul 03, 2007 at 10:06:08PM +0400, Andrey Borzenkov wrote: > On Tuesday 03 July 2007, Richard Michael wrote: > > > DEVNAME is set by udev before calling RUN programs. It is not available > > > when rules are being processed. > > > > Where are these details documented? > > source code? I thought so. I think udev is great, it just needs slightly more helpful documentation to make is really user accessible. There are quite a few "things to know" (such as the default PATH, which took awhile to realize I was overlooking..). > > I've been writing lots of test > > rules to try and figure this out, but I'd prefer to just read something. > > > > patches to manual pages are welcome :) I was thinking about changes to the How To Write UDev Rules document.. > What's wrong with using ID_PATH? It also has advantage of being more stable > than PHYSDEVPATH (which includes volatile details like running SCSI host > number). Yes, I noticed the target number changes even when the hardware remains identical. 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? .. I'll look into again. I'm probably just confused, it's been a bit of mess building some understanding.. :) Thanks, Richard ------------------------------------------------------------------------- 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/ _______________________________________________ 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