From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Michael Date: Tue, 03 Jul 2007 17:52:38 +0000 Subject: Re: ENV{DEVNAME} in remove rule? Message-Id: <20070703175238.GI27375@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 > DEVNAME is set by udev before calling RUN programs. It is not available when > rules are being processed. Where are these details documented? I've been writing lots of test rules to try and figure this out, but I'd prefer to just read something. > In general I am not sure it is wise to match on DEVNAME It can be changed at > any time by installing different rule(s). Better to match on device > properties. I'd really prefer to match PHYSDEVPATH, because what I actually care about is identifying the USB socket which the device is attached (especially for the "add" rule.. the "remove" just uses the device name as I set it when it was added). However, PHYSDEVPATH has been deprecated. I want to create block devices (not symlinks) for the specific ports of a USB (or firewire) controller, and take actions depending on which socket of the controller has been used. 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