Skip to contentSkip to conversation

[[email protected]: Bug#221739: /etc/hotplug/usb.agent generates 100s of lines of error output]

[email protected]: Bug#221739: /etc/hotplug/usb.agent generates 100s of lines of error output Marco d'Itri 2 participants 2 messages Dec 4, 2003 – Dec 10, 2003

lore
Share & tools
lore
#0 lore raw

Debian bug report.

Signature · 2 lines
ciao, |
Marco | [3453 fu5T9iT/VZLEk]

Package: hotplug
Version: 0.0.20031008-1
Severity: normal

If there's an unparseable line in /lib/modules/modules.usbmap, usb.agent generates hundreds (in my case, over 600) lines of output during the boot; specifically, it repeatedly prints out the environment, which includes all the functions it has just loaded.

Easy fix: change this:

--------------------------------------------------------
while read line
do
# comments are lines that start with "#" ... # be careful, they still get parsed by bash! case "$line" in
\#*) continue ;;
esac
--------------------------------------------------------

to this:

--------------------------------------------------------
while read line
do
# comments are lines that start with "#" ... # be careful, they still get parsed by bash! case "$line" in
\#*) continue ;;
"") continue ;;
esac
--------------------------------------------------------

(note the added line in the case statement.) It might also be a good idea to count the lines in modules.usbmap and report the one that fails to parse... I still have to hunt down which one it is. :)

Regards,
Ben Okopnik
-=-=-=-=-=-

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux Fenrir.Thor 2.4.22 #5 Wed Nov 19 15:20:15 EST 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US

Versions of packages hotplug depends on:

ii  debconf                    1.3.15        Debian configuration management sy
ii  module-init-tools          0.9.15-pre2-2 tools for managing Linux kernel mo
ii  modutils                   2.4.25-1      Linux module utilities
ii  procps                     1:3.1.12-1    The /proc file system utilities

-- debconf information:
* hotplug/usb_keyboard:
hotplug/x11_usbmice_hack: false
* hotplug/static_module_list: usb-uhci
* hotplug/usbd_enable: true

#1 lore raw
Quoted 21 lines · Marco d'Itri

Debian bug report.

Signature · 18 lines
ciao, |
Marco | [3453 fu5T9iT/VZLEk]

Date: Wed, 19 Nov 2003 16:06:50 -0500
From: root <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Bug#221739: /etc/hotplug/usb.agent generates 100s of lines of
    error output

Package: hotplug
Version: 0.0.20031008-1
Severity: normal


If there's an unparseable line in /lib/modules/modules.usbmap, usb.agent
generates hundreds (in my case, over 600) lines of output during the
boot; specifically, it repeatedly prints out the environment, which
includes all the functions it has just loaded.

modules.usbmap is generated from depmod. It should NEVER be edited by hand.

thanks,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel