From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fumitoshi UKAI Date: Thu, 02 May 2002 16:02:47 +0000 Subject: Forward: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>' MIME-Version: 1 Content-Type: multipart/mixed; boundary="Multipart_Fri_May__3_01:02:47_2002-1" Message-Id: List-Id: To: linux-hotplug@vger.kernel.org --Multipart_Fri_May__3_01:02:47_2002-1 Content-Type: text/plain; charset=US-ASCII 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 --Multipart_Fri_May__3_01:02:47_2002-1 Content-Type: message/rfc822 Subject: Bug#145484: usb.agent(load_drivers): 'missing kernel or user mode driver <...>' Reply-To: Ben Low , 145484@bugs.debian.org Resent-From: Ben Low Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Fumitoshi UKAI , hotplug@packages.qa.debian.org Resent-Date: Thu, 02 May 2002 02:33:01 GMT Resent-Message-ID: X-Debian-PR-Message: report 145484 X-Debian-PR-Package: hotplug X-Debian-PR-Keywords: patch From: Ben Low To: Debian Bug Tracking System X-Mailer: reportbug 1.50 Date: Thu, 02 May 2002 11:33:17 +1000 Message-ID: <1735TB-29c-00@shaun> Delivered-To: submit@bugs.debian.org Resent-Sender: Debian BTS 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. --Multipart_Fri_May__3_01:02:47_2002-1-- _______________________________________________________________ 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