hotplug scripts launched 4 times
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.
Thank you,
Wojtek
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 15 lines · Wojtek Swiatek
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/usbcamscript is very complicated:
#!/bin/bash
date >>/tmp/xxx
Quoted 4 lines
When plugging in I get 4 lines in
/tmp/xxxIf 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
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 4 lines · Wojtek Swiatek
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
Signature · 13 lines
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 [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 15 lines · Kay Sievers
Quoted 12 lines · Wojtek Swiatek
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/usbcamscript is very complicated:
#!/bin/bash
date >>/tmp/xxxWhen plugging in I get 4 lines in
/tmp/xxx
Quoted 11 lines
Quoted 3 lines
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
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