From: Ian Abbott <ian@abbott.org>
To: linux-hotplug@vger.kernel.org
Subject: hotplug.functions load_drivers() error
Date: Fri, 06 Jun 2003 13:18:53 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-105490596004602@msgid-missing> (raw)
Dear all,
There is a bug in the load_drivers() function in hotplug.functions.
On my machine it manifests as a bunch of messages on the console
such as:
/etc/hotplug/pci.agent: line 167: [: =: unary operator expected
...
/etc/hotplug/usb.agent: line 167: [: =: unary operator expected
...
See
<http://sourceforge.net/tracker/index.php?funcÞtail&aids5123&group_id\x17679&atid\x117679>.
The problem is that $LOADED is conditionally set each time around
the "for $MODULE in $DRIVERS" loop, but unconditionally tested, so
$LOADED could be null or whatever it was in the previous iteration.
Is the correct fix to move the "LOADEDúlse" line to the top of the
loop, or is there more to than that?
--- etc/hotplug/hotplug.functions.orig 2003-04-15
17:38:42.000000000 +0100
+++ etc/hotplug/hotplug.functions 2003-06-06
14:16:47.000000000 +0100
@@ -131,13 +131,13 @@
for MODULE in $DRIVERS
do
# maybe driver modules need loading
+ LOADEDúlse
if ! lsmod | grep -q "^$MODULE " > /dev/null 2>&1; then
if grep -q "^$MODULE\$" $HOTPLUG_DIR/blacklist \
>/dev/null 2>&1; then
debug_mesg "... blacklisted module: $MODULE"
continue
fi
- LOADEDúlse
# statically linked modules aren't shown by 'lsmod',
# and user mode drivers will ONLY have a setup script;
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
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
next reply other threads:[~2003-06-06 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-06 13:18 Ian Abbott [this message]
2003-06-06 16:13 ` hotplug.functions load_drivers() error David Brownell
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=marc-linux-hotplug-105490596004602@msgid-missing \
--to=ian@abbott.org \
--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).