From ab5d2e601de9e5e963d672809148012ceb0933d6 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 24 Aug 2006 08:26:50 +0000 Subject: Make sure the client work on systems without dmidecode and pciutils. Report the hostname as well. --- collect.d/system | 14 ++++++++++---- debian/control | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/collect.d/system b/collect.d/system index 4ed132b..8ccfc58 100644 --- a/collect.d/system +++ b/collect.d/system @@ -2,11 +2,17 @@ set -e -mkdir hardware && cd hardware +mkdir system && cd system -dmidecode > dmidecode +if type dmidecode 2>/dev/null; then + dmidecode > dmidecode +fi + +if type lspci 2>/dev/null; then + lspci > lspci + lspci -n > lspci-n +fi -lspci > lspci -lspci -n > lspci-n uname -smr > uname-smr +uname -n > hostname ifconfig -a > ifconfig-a diff --git a/debian/control b/debian/control index 76d583e..c2cb4f9 100644 --- a/debian/control +++ b/debian/control @@ -15,7 +15,8 @@ Description: Generate site summary of submitting hosts, server package Package: sitesummary-client Architecture: all -Depends: dmidecide, pciutils +Depends: wget +Recommends: dmidecide, pciutils Recommends: sitesummary Description: Generate site summary of submitting hosts, client package Nice client. -- cgit v1.2.3