Package: shaper Version: 2.2.12-0.7.3-2.1 Severity: normal Tags: patch
When the system has network interfaces with capital letters in their names, many errors are displayed at shutdown time. For example: Cannot find device "2:" RTNETLINK answers: No such file or directory Cannot find device "<BROADCAST,MULT" Cannot find device "mtu" Cannot find device "576" Cannot find device "qdisc" Cannot find device "pfifo_fast" Cannot find device "qlen" Cannot find device "1000" Cannot find device "3:" The cause is that the part of the script which parser the output of "ip link show" does not allow for network interface names containing capital letters. I have attached a patch which explicitly allows capital letters in the interface name. It might be worth making the parsing even more forgiving, since the failure mode is so ugly. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-k7 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages shaper depends on: ii debconf [debconf-2.0] 1.5.8 Debian configuration management sy ii iproute 20061002-3 Professional tools to control the shaper recommends no packages. -- debconf information: * shaper/kernel-modules:
--- shaper.bak 2006-12-26 11:43:24.000000000 +0000 +++ shaper 2006-12-26 11:44:10.000000000 +0000 @@ -516,7 +516,7 @@ ### Get list of network devices cbq_device_list () { ip link show| sed -n "/^[0-9]/ \ - { s/^[0-9]\+: \([a-z0-9._]\+\)[:@].*/\1/; p; }" + { s/^[0-9]\+: \([a-zA-Z0-9._]\+\)[:@].*/\1/; p; }" } # cbq_device_list