Package: firmware-b43legacy-installer
Version: 4.178.10.4-4
Severity: normal
Tags: patch

Unfortunately the installer is postinst script is written to expect only one
card from Broadcom in the lspci listing.

I've rewritten the test to be tolerant to multiple matching lines. Please see
the included patch.




-- System Information:
Debian Release: 6.0.2
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages firmware-b43legacy-installer depends on:
ii  b43-fwcutter                  1:013-2    Utility for extracting Broadcom 43
ii  wget                          1.12-2.1   retrieves files from the web

Versions of packages firmware-b43legacy-installer recommends:
ii  linux-image-2.6.26-2-686 2.6.26-26lenny1 Linux 2.6.26 image on PPro/Celeron
ii  linux-image-2.6.32-5-686 2.6.32-35       Linux 2.6.32 for modern PCs

firmware-b43legacy-installer suggests no packages.

-- no debconf information
--- /var/lib/dpkg/info/firmware-b43legacy-installer.postinst~   2010-05-11 
01:56:24.000000000 +0200
+++ /var/lib/dpkg/info/firmware-b43legacy-installer.postinst    2011-08-20 
19:28:22.555874851 +0200
@@ -5,9 +5,9 @@
 # check chip
 pci=`lspci -n | grep -o "14e4:[1234567890]\+"` || true
 if [ -n "$pci" ]; then
-        if [ "`echo $pci | cut -d: -f2`" != "4301" ] && \
-           [ "`echo $pci | cut -d: -f2`" != "4306" ] && \
-           [ "`echo $pci | cut -d: -f2`" != "4320" ]; then
+        if ! echo "$pci" | grep "4301" && \
+           ! echo "$pci" | grep "4306" && \
+           ! echo "$pci" | grep "4320"; then
                 echo "Not supported card here (PCI id $pci)!"
                 echo "Use b43 firmware. This is just for the b43legacy driver."
                 echo "Aborting."

Reply via email to