[kernel] r14332 - in dists/trunk/linux-2.6/debian: . templates/image.plain.bug

Ben Hutchings benh at alioth.debian.org
Sun Oct 4 20:01:37 UTC 2009


Author: benh
Date: Sun Oct  4 20:01:29 2009
New Revision: 14332

Log:
Include USB device list in bug reports

Added:
   dists/trunk/linux-2.6/debian/templates/image.plain.bug/include-usb
Modified:
   dists/trunk/linux-2.6/debian/changelog

Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog	Sun Oct  4 19:43:48 2009	(r14331)
+++ dists/trunk/linux-2.6/debian/changelog	Sun Oct  4 20:01:29 2009	(r14332)
@@ -4,6 +4,7 @@
   * Include model information in bug reports
   * Include firmware package status in bug reports
   * Optionally include network configuration and status in bug reports
+  * Include USB device list in bug reports
 
  -- Ben Hutchings <ben at decadent.org.uk>  Sun, 04 Oct 2009 19:48:35 +0100
 

Added: dists/trunk/linux-2.6/debian/templates/image.plain.bug/include-usb
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/templates/image.plain.bug/include-usb	Sun Oct  4 20:01:29 2009	(r14332)
@@ -0,0 +1,15 @@
+add_usb() {
+  echo '** USB devices:' >&3
+  if command -v lsusb >/dev/null; then
+    lsusb >&3
+  else
+    echo 'not available' >&3
+  fi
+  echo >&3
+}
+
+ask_usb() {
+  # This information shouldn't vary much between kernel versions, so
+  # include it anyway.
+  test $same_system = nop || add_usb 
+}



More information about the Kernel-svn-changes mailing list