linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fumitoshi UKAI <ukai@debian.or.jp>
To: linux-hotplug@vger.kernel.org
Subject: Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>'
Date: Thu, 02 May 2002 16:02:47 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-102035559414454@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

Hi,

I received the attached report.  I think this patch seems to be ok.
May I apply this patch to cvs repository?

Regards,
Fumitoshi UKAI


[-- Attachment #2: Type: message/rfc822, Size: 2143 bytes --]

From: Ben Low <ben@snrc.uow.edu.au>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>'
Date: Thu, 02 May 2002 11:33:17 +1000
Message-ID: <1735TB-29c-00@shaun>

Package: hotplug
Version: 0.0.20020114-7
Severity: normal
Tags: patch

Symptom:
usb.agent complains "missing kernel or user mode driver" whenever
trying to setup an already loaded module.

Cause:
The load_drivers function tests to see if the target module is already 
loaded via a lsmod | grep. Unfortunately the grep always fails, it does not
appear to like not having anywhere to write to 
("grep: writing output: Bad file descriptor").

Solution:
redirect grep's stdout/err:

--- hotplug.functions.orig      Thu May  2 11:22:40 2002
+++ hotplug.functions   Thu May  2 10:54:23 2002
@@ -135,7 +135,7 @@
     # either kernel or user mode drivers may need to be set up
     for MODULE in $DRIVERS
     do
-       if ! lsmod | grep -q "^$MODULE "; then
+       if ! lsmod | grep -q "^$MODULE " >/dev/null 2>&1; then
            if grep -q "^$MODULE\$" /etc/hotplug/blacklist \
                    >/dev/null 2>&1; then
                debug_mesg "... blacklisted module:  $MODULE"



-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux shaun 2.4.17 #1 Wed May 1 12:18:30 EST 2002 i686
Locale: LANG=en_AU, LC_CTYPE=en_AU

Versions of packages hotplug depends on:
ii  debconf                       1.0.32     Debian configuration management sy
ii  modutils                      2.4.15-1   Linux module utilities.





             reply	other threads:[~2002-05-02 16:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02 16:02 Fumitoshi UKAI [this message]
2002-05-02 21:47 ` Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>' Greg KH

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-102035559414454@msgid-missing \
    --to=ukai@debian.or.jp \
    --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).