From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Pilcher Date: Thu, 11 Nov 2004 18:02:40 +0000 Subject: Is anybody paying attention? Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Come on people! This is causing a lot of pain for people who want USB devices to "just work". If changing the "readlink -f" call to just "readlink" isn't the right answer, then someone speak up. Otherwise, fix it! Ian Pilcher wrote: > This seems pretty straightforward to me. Is there some reason that no > one has responded? > > -------- Original Message -------- > Subject: BUG: REMOVER not called for USB unplug > Date: Sun, 06 Jun 2004 12:04:38 -0500 > From: Ian Pilcher > To: linux-hotplug-devel@lists.sourceforge.net > > This is a follow-up to the "Run script when USB scanner unplugged" > thread. I think I have figured out why the REMOVER script is never > called when I unplug my USB scanner. > > I believe that the problem is the following part of > /etc/hotplug/usb.agent: > > # > # declare a REMOVER name that the add action can use to create a > # remover, or that the remove action can use to execute a remover. > # > if [ "$DEVPATH" != "" ]; then > # probably, 2.6.x > REMOVER=/var/run/usb/$(readlink -f $SYSFS/$DEVPATH | sed -e 's;/;%;g') > elif [ "$DEVICE" != "" ]; then > # 2.4.x? > REMOVER=/var/run/usb/$(echo $DEVICE | sed -e 's;/;%;g') > else > # should not happen? > REMOVER=/var/run/usb/$(echo "$INTERFACE/$PRODUCT/$TYPE" | sed -e > 's;/;%;g') > fi > export REMOVER > > Note that if DEVPATH is set, then the sysfs entry is used to determine > the value of REMOVER. But this entry is already gone when the script is > executed. > > Could the call to readlink -f be removed? > -- ==================================== Ian Pilcher i.pilcher@comcast.net ==================================== ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ 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