From: Wojtek Swiatek <wojtek@swiatek.name>
To: linux-hotplug@vger.kernel.org
Subject: Re: [BUG?] hotplug scripts launched 4 times
Date: Wed, 22 Dec 2004 20:44:27 +0000 [thread overview]
Message-ID: <41C9DCAB.1000407@swiatek.name> (raw)
In-Reply-To: <41C9D949.6020306@swiatek.name>
[-- Attachment #1: Type: text/plain, Size: 1084 bytes --]
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
[-- Attachment #2: xxx.txt --]
[-- Type: text/plain, Size: 1344 bytes --]
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
prev parent reply other threads:[~2004-12-22 20:44 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
2004-12-22 20:44 ` Wojtek Swiatek [this message]
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=41C9DCAB.1000407@swiatek.name \
--to=wojtek@swiatek.name \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.