From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 30 Nov 2005 23:21:27 +0000 Subject: Re: Does RUN work with "remove" events? Message-Id: <20051130232127.GB5871@vrfy.org> List-Id: References: <438E2455.5090702@bl.com> In-Reply-To: <438E2455.5090702@bl.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Nov 30, 2005 at 04:14:45PM -0600, Moshe Yudkowsky wrote: > I've written a udev rule to add a UMS flash drive with device name /dev/ums: > > SYSFS{product}="Flash Disk", NAME="ums", RUN+="/etc/hotplug/usb/ums" Sysfs values are not readable at remove, cause the device directory is already gone. You need to match against properties which you can see in udevmonitor --env or you need to store a custom key with ENV{key}="value" in the database, which is imported on remove. Kay ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ 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