From: Franco Martelli <martellif67@gmail.com>
To: linux-hotplug@vger.kernel.org
Subject: udevadm monitor and atapi dvdrw
Date: Wed, 21 Nov 2012 15:55:30 +0000 [thread overview]
Message-ID: <50ACF972.5020409@gmail.com> (raw)
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.
next reply other threads:[~2012-11-21 15:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-21 15:55 Franco Martelli [this message]
2012-11-22 19:08 ` udevadm monitor and atapi dvdrw Kay Sievers
2012-11-24 16:09 ` Franco Martelli
2012-11-25 15:44 ` Franco Martelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50ACF972.5020409@gmail.com \
--to=martellif67@gmail.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).