From mboxrd@z Thu Jan 1 00:00:00 1970 From: md@Linux.IT (Marco d'Itri) Date: Wed, 22 Dec 2004 20:40:49 +0000 Subject: Re: [BUG?] hotplug scripts launched 4 times Message-Id: <20041222204049.GA13372@wonderland.linux.it> List-Id: References: <41C9D949.6020306@swiatek.name> In-Reply-To: <41C9D949.6020306@swiatek.name> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Dec 22, Wojtek Swiatek 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