From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Pilcher Date: Thu, 11 Nov 2004 21:00:16 +0000 Subject: Re: Is anybody paying attention? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Ian Pilcher wrote: > 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! > An update, changing 'readlink -f' to simply 'readlink' definitely doesn't work. Replacing it with 'echo' *seems* to work for me. I don't feel comfortable sending in a patch to do this, because I don't under- stand what side-effects it might have. To ask again, I'm proposing to change the line in /etc/hotplug/usb.agent that reads: REMOVER=/var/run/usb/$(readlink -f $SYSFS/$DEVPATH | sed -e 's;/;%;g') to: REMOVER=/var/run/usb/$(echo -n $SYSFS/$DEVPATH | sed -e 's;/;%;g') This gives REMOVER a consistent value for both add and insert events (even when the sysfs device is already gone during the remove event). -- ==================================== 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