Skip to contentSkip to conversation

add/remove actions for usb devices [oups]

DISCUSSION Florian Iragne 1 participant 1 message Mar 28, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 35 lines · Greg KH
Quoted 12 lines · Florian Iragne
Quoted 12 lines

Or if you want to catch the fact when udev removes a /dev node (which odds are is what you really want to catch), put your script, or a link to it in /etc/dev.d/block/ with the extension .dev and you will get both add and remove events that corrisponded to a udev create or remove device node.

Quoted 7 lines

just one more stupid question! ;-)

is this /etc/dev.d/block/ directory supposed to already exist? i think so but can't find it. On my debian sid, i have /etc/udev directory, but no block in this

You need the 023 release for this to work.

And no, that directory will not be there, you need to create it yourself.

Quoted 4 lines

and another one in fact : is the creation of a SYMLINK considered as a node add?

Quoted 10 lines

No, but the SYMLINK had to be created to point to some real node, right? :)

That should all happen in one action.

thanks,

greg k-h

oups, i just find your article about this feature!
http://lwn.net/Articles/77350/

sorry! ;-)

Florian

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel