linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix firmware.agent for multiple sysfs mounts
@ 2005-04-27 16:41 Bill Nottingham
  2005-04-28 16:47 ` Marcel Holtmann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bill Nottingham @ 2005-04-27 16:41 UTC (permalink / raw)
  To: linux-hotplug

[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-04-28 20:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-27 16:41 [PATCH] fix firmware.agent for multiple sysfs mounts Bill Nottingham
2005-04-28 16:47 ` Marcel Holtmann
2005-04-28 16:48 ` Bill Nottingham
2005-04-28 16:50 ` Marco d'Itri
2005-04-28 20:56 ` Linas Vepstas

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).