linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevadm monitor and atapi dvdrw
@ 2012-11-21 15:55 Franco Martelli
  2012-11-22 19:08 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Franco Martelli @ 2012-11-21 15:55 UTC (permalink / raw)
  To: linux-hotplug

Hi everybody,

I'm using Debian Sqeeze 6.0, kernel 2.6.32, udev version 164.
With kernel provided from debian my dvdrw is under scsi subsystem and 
udevadm monitor recognize optical disk change with a lot of info output 
suitable to write rules.
I've recompilated the kernel and things has changed, now my dvdrw is 
under ide/atapi subsystem and the device name is hdc now.
I'd like to write a rule that remove udf and crc_itu_t modules as soon 
as optical disk is left off from dvdrw drive. Example:

SUBSYSTEM="block", KERNEL="hdc", ACTION="change", RUN+="/sbin/rmmod 
udf crc_itu_t"

I look at http://reactivated.net/writing_udev_rules.html but doesn't 
help for ide devices ACTION="change".
Could anybody help me to write such a rule?

bye,

-- 
                                         Franco Martelli.


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

end of thread, other threads:[~2012-11-25 15:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-21 15:55 udevadm monitor and atapi dvdrw Franco Martelli
2012-11-22 19:08 ` Kay Sievers
2012-11-24 16:09 ` Franco Martelli
2012-11-25 15:44 ` Franco Martelli

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