From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bill Nottingham Date: Mon, 07 Feb 2005 22:35:42 +0000 Subject: [PATCH] fix usb remover Message-Id: <20050207223542.GC16631@nostromo.devel.redhat.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="7iMSBzlTiPOCCT2k" List-Id: To: linux-hotplug@vger.kernel.org --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Can't use readlink, as it's reading something that no longer exists on remove. Bill --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="hotplug-usb-remove.patch" --- 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') --7iMSBzlTiPOCCT2k-- ------------------------------------------------------- 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_id=6595&alloc_id=14396&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