Package: hotplug Version: 0.0.20040329-17 Severity: minor /etc/hotplug/hotplug.functions includes this line:
if ! lsmod | grep -q "^$(echo $MODULE|sed -e 's/-/_/g') " > /dev/null 2>&1; then I am running Linux 2.4.27. DRIVERS contains, among other names, "snd-cs46xx" which in its turn gets assigned to MODULE. sed converts the hyphen in this string to an underscore for grep's regexp argument. lsmod outputs "snd-cs46xx", not "snd_cs46xx", so grep returns failure. I assume that the opposite result was intended. $ lsmod | grep "^$(echo snd-cs46xx|sed -e 's/-/_/g') " $ lsmod | sed -e 's/-/_/g' | grep "^$(echo snd-cs46xx|sed -e 's/-/_/g') " snd_cs46xx 68744 0 Originally I see: snd-cs46xx: loaded successfully After applying the following patch I see: snd-cs46xx: already loaded 168c168 < if ! lsmod | grep -q "^$(echo $MODULE|sed -e 's/-/_/g') " > /dev/null 2>&1; then --- > if ! lsmod | sed -e 's/-/_/g' | grep -q "^$(echo $MODULE|sed -e > 's/-/_/g') " > /dev/null 2>&1; then -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.4.27-2-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages hotplug depends on: ii debconf 1.4.32 Debian configuration management sy ii grep 2.5.1.ds1-4 GNU grep, egrep and fgrep ii module-init-tools 3.2-pre1-2 tools for managing Linux kernel mo ii modutils 2.4.27-0.1 Linux module utilities ii procps 1:3.2.3-1 The /proc file system utilities -- debconf information: * hotplug/ignore_pci_class_display: true * hotplug/net_agent_policy: hotplug * hotplug/static_module_list: * hotplug/usb_keyboard: hotplug/x11_usbmice_hack: false -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]