linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udev remove ATTR(S) not working
@ 2007-06-06 22:56 Farkas Levente
  2007-06-06 23:08 ` Kay Sievers
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Farkas Levente @ 2007-06-06 22:56 UTC (permalink / raw)
  To: linux-hotplug

hi,
how can i write a RUN udev rules for remove event? i want to recognize
my usd pendrive's add and remove. the add is simple since i can use
rather specific rules like:
---------------------------------------
ACTION="add", SUBSYSTEM="block", ATTR{size}="2880",
ATTRS{serial}="07530736300A", ATTRS{product}="USB DISK Pro", RUN+="/xxx"
---------------------------------------
but the remove rule is much complicated, since (at least it seems for
me) udev don't send ATTR(S) in this case and don't know about anymore
the removed device parameters.

anyway how can i how what kind of ATTR(S) was send by udev?
a simple RUN script like this is not too useful since it's only shows
environment variable but not ATTR(S)
-----------------------
#!/bin/bash
OUT=/tmp/udev.$$
echo " ------ $ACTION ------------" > $OUT
set >> $OUT
-----------------------
is there any way to debug udev?

another question what is the ID_* env variables? these are the same as
ATTR(S) or ..?

thank you for you help in advance.

-- 
  Levente                               "Si vis pacem para bellum!"

-------------------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-06-10 11:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-06 22:56 udev remove ATTR(S) not working Farkas Levente
2007-06-06 23:08 ` Kay Sievers
2007-06-07  3:38 ` Andrey Borzenkov
2007-06-07  8:38 ` Farkas Levente
2007-06-07 16:30 ` Andrey Borzenkov
2007-06-07 21:13 ` Farkas Levente
2007-06-09 13:03 ` Farkas Levente
2007-06-09 15:37 ` Andrey Borzenkov
2007-06-09 15:40 ` Andrey Borzenkov
2007-06-09 17:54 ` Kay Sievers
2007-06-09 19:58 ` Farkas Levente
2007-06-09 20:16 ` Farkas Levente
2007-06-10  4:18 ` Andrey Borzenkov
2007-06-10 11:33 ` Farkas Levente
2007-06-10 11:38 ` Andrey Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).