Add procinfo to suggests. Check for installed binaries.
authorAlexander Wirt <formorer@grml.org>
Mon, 11 Jun 2007 09:45:25 +0000 (11:45 +0200)
committerAlexander Wirt <formorer@grml.org>
Mon, 11 Jun 2007 09:45:25 +0000 (11:45 +0200)
debian/control
grml-hwinfo

index ad36d6a..935ee8d 100644 (file)
@@ -8,7 +8,7 @@ Standards-Version: 3.7.2
 Package: grml-hwinfo
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}, sysfsutils
-Suggests: hwinfo, usbutils, pcmcia-utils, net-tools, iproute, powermgmt-base, acpi, xviddetect, xbase-clients, xresprobe, dmidecode, hdparm, parted-bf, smartmontools,
+Suggests: hwinfo, usbutils, pcmcia-utils, net-tools, iproute, powermgmt-base, acpi, xviddetect, xbase-clients, xresprobe, dmidecode, hdparm, parted-bf, smartmontools, procinfo
 Conflicts: grml-scripts (<= 0.4-15)
 Description: collect hardware information
  This tool collects information regarding hardware.  It can be
index b30976c..3fed78d 100755 (executable)
@@ -83,7 +83,7 @@ mkdir info || exit -1
   [ -r /proc/ide/ide?/hd?/geometry ] && grep . /proc/ide/ide?/hd?/geometry /dev/null | sed -e 's#/proc/ide/ide./##' > proc_ide
   df -h > df 2>/dev/null
   for i in free lsmod mount lsdev ; do
-    $i > $i
+    [[ -x `which $i` ]] && $i > $i
   done
 
 # proc stuff