fix usb remover
PATCH 1/1 fix usb remover
Can't use readlink, as it's reading something that no longer exists on remove.
Bill
home/notting/usb.agent renamed from etc/hotplug/usb.agent +1 -1
@@ -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')
Quoted 2 lines · Bill Nottingham
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_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 5 lines · David Brownell
Quoted 2 lines · Bill Nottingham
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?id1511
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_id396&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel