Bug#638956: include-network bug script doesn't work in case of bonding
Package: linux-2.6
Version: 2.6.32-30
Severity: minor
File: /usr/share/bug/linux-image-2.6.32-5-amd64/include-network
include-network does a
for dir in /sys/class/net/*; do
...
cat "$dir"/features >&3
but when bonding is active, there's also a file 'bonding_masters' under
/sys/class/net/ and so the 'cat' fails. I've just replaced that line with
[ -f "$dir"/features ] && cat "$dir"/features >&3
and it works.
Cheers,
Sandro
-- System Information:
Debian Release: 6.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages linux-image-2.6.32-5-amd64 depends on:
ii debconf [debconf 1.5.37 Debian configuration management sy
ii initramfs-tools 0.98.7 tools for generating an initramfs
ii linux-base 2.6.37-1~experimental.1 Linux image base package
ii module-init-tool 3.12-1 tools for managing Linux kernel mo
Versions of packages linux-image-2.6.32-5-amd64 recommends:
ii firmware-linux-f 2.6.37-1~experimental.1 Binary firmware for various driver
Versions of packages linux-image-2.6.32-5-amd64 suggests:
pn grub | lilo <none> (no description available)
pn linux-doc-2.6.32 <none> (no description available)
Versions of packages linux-image-2.6.32-5-amd64 is related to:
pn firmware-bnx2 <none> (no description available)
pn firmware-bnx2x <none> (no description available)
pn firmware-ipw2x00 <none> (no description available)
pn firmware-ivtv <none> (no description available)
ii firmware-iwlwifi 0.28 Binary firmware for Intel Wireless
ii firmware-linux 0.28 Binary firmware for various driver
ii firmware-linux-nonfree 0.28 Binary firmware for various driver
pn firmware-qlogic <none> (no description available)
pn firmware-ralink <none> (no description available)
pn xen-hypervisor <none> (no description available)
-- debconf information excluded
Reply to: