* [PATCH] fix usb remover
@ 2005-02-07 22:35 Bill Nottingham
2005-02-07 22:52 ` David Brownell
2005-02-07 22:57 ` Bill Nottingham
0 siblings, 2 replies; 3+ messages in thread
From: Bill Nottingham @ 2005-02-07 22:35 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 84 bytes --]
Can't use readlink, as it's reading something that no longer exists
on remove.
Bill
[-- Attachment #2: hotplug-usb-remove.patch --]
[-- Type: text/plain, Size: 467 bytes --]
--- hotplug-2004_04_01/etc/hotplug/usb.agent 2004-04-01 12:38:59.000000000 -0500
+++ /home/notting/usb.agent 2004-11-16 12:42:26.584166935 -0500
@@ -344,7 +344,7 @@
#
if [ "$DEVPATH" != "" ]; then
# probably, 2.6.x
- REMOVER=/var/run/usb/$(readlink -f $SYSFS/$DEVPATH | sed -e 's;/;%;g')
+ REMOVER=/var/run/usb/$(echo -n $SYSFS/$DEVPATH | sed -e 's;/;%;g')
elif [ "$DEVICE" != "" ]; then
# 2.4.x?
REMOVER=/var/run/usb/$(echo $DEVICE | sed -e 's;/;%;g')
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix usb remover
2005-02-07 22:35 [PATCH] fix usb remover Bill Nottingham
@ 2005-02-07 22:52 ` David Brownell
2005-02-07 22:57 ` Bill Nottingham
1 sibling, 0 replies; 3+ messages in thread
From: David Brownell @ 2005-02-07 22:52 UTC (permalink / raw)
To: linux-hotplug
On Monday 07 February 2005 2:35 pm, Bill Nottingham wrote:
> Can't use readlink, as it's reading something that no longer exists
> on remove.
Actually, is anyone using that mechanism other than Steve?
If not, I'd rather just remove it. It makes problems with
OpenEmbedded builds, and in other places where "readlink -f"
isn't necessarily available.
- Dave
-------------------------------------------------------
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://ads.osdn.com/?ad_ide95&alloc_id\x14396&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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] fix usb remover
2005-02-07 22:35 [PATCH] fix usb remover Bill Nottingham
2005-02-07 22:52 ` David Brownell
@ 2005-02-07 22:57 ` Bill Nottingham
1 sibling, 0 replies; 3+ messages in thread
From: Bill Nottingham @ 2005-02-07 22:57 UTC (permalink / raw)
To: linux-hotplug
David Brownell (david-b@pacbell.net) said:
> On Monday 07 February 2005 2:35 pm, Bill Nottingham wrote:
> > Can't use readlink, as it's reading something that no longer exists
> > on remove.
>
> Actually, is anyone using that mechanism other than Steve?
Gory history is in:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id\x121511
Basically, used for usb scanner stuff in combination
with pam_console.
Bill
-------------------------------------------------------
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://ads.osdn.com/?ad_ide95&alloc_id\x14396&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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-07 22:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-07 22:35 [PATCH] fix usb remover Bill Nottingham
2005-02-07 22:52 ` David Brownell
2005-02-07 22:57 ` Bill Nottingham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).