linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: md@Linux.IT (Marco d'Itri)
To: linux-hotplug@vger.kernel.org
Subject: Re: [BUG?] hotplug scripts launched 4 times
Date: Wed, 22 Dec 2004 20:40:49 +0000	[thread overview]
Message-ID: <20041222204049.GA13372@wonderland.linux.it> (raw)
In-Reply-To: <41C9D949.6020306@swiatek.name>

On Dec 22, Wojtek Swiatek <wojtek@swiatek.name> wrote:

> The problem I have is that my agents scripts are launched 4 (for usbcam) 
> or 2 (for USB pendrive) times - everytime. I looked though google trying 
> to find someone with a similar issue but I seem to be the only one in 
> the world with the issue (as usual :)).

From http://linux-hotplug.sourceforge.net/?selected=usb:

There are two kinds of usb hotplug event: device, and interface. Kernel
2.6 added device events, as well as reporting the complete set of
interface events. You can tell which kind of event by the environment
variables: device events don't include PRODUCT, or any of the other
parameters here except DEVPATH and ACTION. 

So:

# ignore device events
[ "$PRODUCT" ] || exit 0

-- 
ciao, |
Marco | [9988 anaVIqHsbuYXc]


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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

  parent reply	other threads:[~2004-12-22 20:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22 20:30 [BUG?] hotplug scripts launched 4 times Wojtek Swiatek
2004-12-22 20:35 ` Kay Sievers
2004-12-22 20:40 ` Marco d'Itri [this message]
2004-12-22 20:44 ` Wojtek Swiatek

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=20041222204049.GA13372@wonderland.linux.it \
    --to=md@linux.it \
    --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).