From: Bill Nottingham <notting@redhat.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] fix firmware.agent for multiple sysfs mounts
Date: Wed, 27 Apr 2005 16:41:14 +0000 [thread overview]
Message-ID: <20050427164114.GA15719@nostromo.devel.redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
Not sure when you'd normally end up with this, but someone
reported it in our bugzilla. Fixes firmware.agent breaking
completely if sysfs is mounted on multiple paths.
Bill
[-- Attachment #2: hotplug-2004_09_23-firmwaresys.patch --]
[-- Type: text/plain, Size: 436 bytes --]
--- hotplug-2004_09_23/etc/hotplug/firmware.agent.foo 2005-04-27 12:37:21.000000000 -0400
+++ hotplug-2004_09_23/etc/hotplug/firmware.agent 2005-04-27 12:37:46.000000000 -0400
@@ -23,7 +23,7 @@
FIRMWARE_DIR=/lib/firmware
# mountpoint of sysfs
-SYSFS=$(sed -n 's/^.* \([^ ]*\) sysfs .*$/\1/p' /proc/mounts)
+SYSFS=$(awk '$3 == "sysfs" { print $2 ; nextfile }' /proc/mounts)
# use /proc for 2.4 kernels
if [ "$SYSFS" = "" ]; then
next reply other threads:[~2005-04-27 16:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-27 16:41 Bill Nottingham [this message]
2005-04-28 16:47 ` [PATCH] fix firmware.agent for multiple sysfs mounts Marcel Holtmann
2005-04-28 16:48 ` Bill Nottingham
2005-04-28 16:50 ` Marco d'Itri
2005-04-28 20:56 ` Linas Vepstas
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=20050427164114.GA15719@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).