aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--collect.d/system12
-rw-r--r--debian/changelog1
-rw-r--r--debian/control2
3 files changed, 12 insertions, 3 deletions
diff --git a/collect.d/system b/collect.d/system
index 2843731..be922af 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -6,15 +6,23 @@ set -e
mkdir system && cd system
-if type dmidecode >/dev/null; then
+if type dmidecode >/dev/null 2>&1; then
dmidecode > dmidecode
fi
-if type lspci >/dev/null; then
+if type lspci >/dev/null 2>&1; then
lspci > lspci
lspci -n > lspci-n
fi
+if type lsusb >/dev/null 2>&1; then
+ lsusb > lsusb
+fi
+
+if type lsscsi >/dev/null 2>&1; then
+ lsscsi > lsscsi
+fi
+
uname -smr > uname-smr
uname -n > hostname
ifconfig -a > ifconfig-a
diff --git a/debian/changelog b/debian/changelog
index 45dec24..5594050 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ sitesummary (0.0.5) UNRELEASED; urgency=low
[ Petter Reinholdtsen ]
* Add debconf question for sitegroup and host class.
+ * Collect output from lsusb and lsscsi if they are present.
[ Steffen Joeris ]
* Update debian/copyright file
diff --git a/debian/control b/debian/control
index 54b0e20..f4b1e33 100644
--- a/debian/control
+++ b/debian/control
@@ -16,7 +16,7 @@ Description: Generate site summary of submitting hosts, server package
Package: sitesummary-client
Architecture: all
Depends: ${misc:Depends}, wget, gnupg
-Recommends: dmidecide, pciutils, sitesummary
+Recommends: dmidecide, pciutils, usbutils, lsscsi, sitesummary
Description: Generate site summary of submitting hosts, client package
Nice client.