From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wojtek Swiatek Date: Wed, 22 Dec 2004 20:44:27 +0000 Subject: Re: [BUG?] hotplug scripts launched 4 times Message-Id: <41C9DCAB.1000407@swiatek.name> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------020307070700090001030303" List-Id: References: <41C9D949.6020306@swiatek.name> In-Reply-To: <41C9D949.6020306@swiatek.name> To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. --------------020307070700090001030303 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Kay Sievers wrote: >On Wed, 2004-12-22 at 21:30 +0100, Wojtek Swiatek wrote: > > >>Hello, >> >>I am not sure this is the proper list for reporting possible bugs but I >>did not find anything better :) >> >>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 :)). >> >>System: Fedora Core 3 with latest patches/software versions. The >>/etc/hotplug/usb/usbcam script is very complicated: >>#!/bin/bash >>date >> /tmp/xxx >> >>When plugging in I get 4 lines in /tmp/xxx >> >>If this is a known issue (or if I do something terribly wrong) I would >>appreciate a cc: as I am not subscribed to the list. >> >> > >Please log the env, or at least the DEVPATH from the environment, to see >what kernel devices are generating the events. > >Kay > > > Thank you for your email. I added env >> /tmp/xxx to the script above and the result is attached. Best regards, Wojtek --------------020307070700090001030303 Content-Type: text/plain; name="xxx.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xxx.txt" Wed Dec 22 21:39:02 CET 2004 DEVPATH=/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0 REMOVER=/var/run/usb/%sys%%devices%pci0000:00%0000:00:1f.2%usb1%1-1%1-1:1.0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=3 DEVICE=/proc/bus/usb/001/042 INTERFACE=6/1/1 PRODUCT=4a9/309a/1 TYPE=usb SEQNUM=602 _=/bin/env Wed Dec 22 21:39:02 CET 2004 DEVPATH=/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0 REMOVER=/var/run/usb/%sys%%devices%pci0000:00%0000:00:1f.2%usb1%1-1%1-1:1.0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=3 DEVICE=/proc/bus/usb/001/042 INTERFACE=6/1/1 PRODUCT=4a9/309a/1 TYPE=usb SEQNUM=602 _=/bin/env Wed Dec 22 21:39:02 CET 2004 DEVPATH=/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0 REMOVER=/var/run/usb/%sys%%devices%pci0000:00%0000:00:1f.2%usb1%1-1%1-1:1.0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=3 DEVICE=/proc/bus/usb/001/042 INTERFACE=6/1/1 PRODUCT=4a9/309a/1 TYPE=usb SEQNUM=602 _=/bin/env Wed Dec 22 21:39:03 CET 2004 DEVPATH=/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0 REMOVER=/var/run/usb/%sys%%devices%pci0000:00%0000:00:1f.2%usb1%1-1%1-1:1.0 PATH=/bin:/sbin:/usr/sbin:/usr/bin ACTION=add PWD=/etc/hotplug HOME=/ SHLVL=3 DEVICE=/proc/bus/usb/001/042 INTERFACE=6/1/1 PRODUCT=4a9/309a/1 TYPE=usb SEQNUM=602 _=/bin/env --------------020307070700090001030303-- ------------------------------------------------------- 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