Make bug script accept failure of lspci (Closes: #639439)

svn path=/dists/sid/linux-2.6/; revision=18028
This commit is contained in:
Ben Hutchings 2011-08-28 16:10:03 +00:00
parent ec5e95f481
commit c7e36cd4fe
2 changed files with 8 additions and 5 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
linux-2.6 (3.0.0-4) UNRELEASED; urgency=low
[ Ben Hutchings ]
* Make bug script accept failure of lspci (Closes: #639439)
-- Ben Hutchings <ben@decadent.org.uk> Sun, 28 Aug 2011 17:07:47 +0100
linux-2.6 (3.0.0-3) unstable; urgency=low
[ Ben Hutchings ]

View File

@ -1,10 +1,6 @@
add_pci() {
echo '** PCI devices:' >&3
if command -v lspci > /dev/null; then
lspci -nnvv >&3
else
echo 'not available' >&3
fi
lspci -nnvv >&3 2>/dev/null || echo 'not available' >&3
echo >&3
}