From: "Toni Mirabete i Terés" <amirabet@xtec.net>
To: linux-hotplug@vger.kernel.org
Subject: When I plug my pendrive, script runs twice
Date: Tue, 20 Sep 2005 01:52:56 +0000 [thread overview]
Message-ID: <200509200352.56616.amirabet@xtec.net> (raw)
When I start udevmonitor, I see UEVENT and UDEV with the same device inserted.
How I can ignore UEVENT?
My desktop is updated twice, is not a great problem, but I don't like this.
Another problem is when I remove my scanner, the same rule doesn't work with
my scanner, and runs good with pendrives. There is no problem adding my
scanner, only when is removed.
And finally when I insert my pendrive it takes four seconds to activate it.
It's normal or perhaps is about USB bus.
I use kernel 2.6.13 and udev 070. I send my file (catix.rules):
Thanks
I think that udev is good and will be great with more documentation and
examples.
#catix.rules
# Regles per poder tenir dispositius usb situats a l'escriptori automaticament
a la CATix
# Pendrive o memoria usb
ACTION="add" , KERNEL="[us][bd][a-z]*", RUN+="/etc/udev/scripts/catixusb.sh %k
add"
ACTION="remove" , KERNEL="[us][bd][a-z]*", RUN+="/etc/udev/scripts/catixusb.sh
%k remove"
# Escannner
ACTION="add" , SYSFS{product}="*[Ss][Cc][Aa][Nn]*" ,
ENV{MY_REMOVE}="/etc/udev/scripts/catixescanner.sh remove" ,
RUN+="/etc/udev/scripts/catixescanner.sh add"
ACTION="remove" , ENV{MY_REMOVE}!="", RUN+="$env{MY_REMOVE}"
# Aixo tambe funciona i ho deixo per curios
# ACTION="add", KERNEL="[us][bd][a-z]*",
ENV{MY_REMOVE}="/etc/udev/scripts/catixusb.sh %k remove",
RUN+="/etc/udev/scripts/catixusb.sh %k add"
# ACTION="remove", ENV{MY_REMOVE}!="", RUN+="$env{MY_REMOVE}"
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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
next reply other threads:[~2005-09-20 1:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-20 1:52 Toni Mirabete i Terés [this message]
2005-09-20 9:26 ` When I plug my pendrive, script runs twice Greg KH
2005-09-20 12:55 ` Greg KH
2005-09-21 0:56 ` Toni Mirabete i Terés
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=200509200352.56616.amirabet@xtec.net \
--to=amirabet@xtec.net \
--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 NNTP newsgroup(s).