From: Bill Nottingham <notting@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] fix usb remover
Date: Mon, 07 Feb 2005 22:35:42 +0000 [thread overview]
Message-ID: <20050207223542.GC16631@nostromo.devel.redhat.com> (raw)
[-- 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')
next reply other threads:[~2005-02-07 22:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-07 22:35 Bill Nottingham [this message]
2005-02-07 22:52 ` [PATCH] fix usb remover David Brownell
2005-02-07 22:57 ` Bill Nottingham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050207223542.GC16631@nostromo.devel.redhat.com \
--to=notting@redhat.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).