* Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>'
@ 2002-05-02 16:02 Fumitoshi UKAI
2002-05-02 21:47 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Fumitoshi UKAI @ 2002-05-02 16:02 UTC (permalink / raw)
To: linux-hotplug
[-- 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>'
2002-05-02 16:02 Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>' Fumitoshi UKAI
@ 2002-05-02 21:47 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2002-05-02 21:47 UTC (permalink / raw)
To: linux-hotplug
On Fri, May 03, 2002 at 01:02:47AM +0900, Fumitoshi UKAI wrote:
> Hi,
>
> I received the attached report. I think this patch seems to be ok.
> May I apply this patch to cvs repository?
Looks good to me. Feel free to.
thanks,
greg k-h
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-02 21:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-02 16:02 Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>' Fumitoshi UKAI
2002-05-02 21:47 ` Greg KH
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).