Support i2c-tools's decode-dimms
authorMichael Prokop <mika@grml.org>
Tue, 2 Sep 2014 04:02:00 +0000 (21:02 -0700)
committerMichael Prokop <mika@grml.org>
Tue, 2 Sep 2014 04:03:01 +0000 (21:03 -0700)
debian/control
grml-hwinfo

index bdfd20a..b470123 100644 (file)
@@ -21,6 +21,7 @@ Recommends: acpi,
             edac-utils,
             hdparm,
             hwinfo,
+            i2c-tools,
             iproute2 | iproute,
             laptop-detect,
             lsscsi,
index 65e7566..ed48463 100755 (executable)
@@ -294,7 +294,9 @@ cd "${OUTDIR}" || exit 1
       edac-util --report=full > edac-util_report 2>edac-util_report.error
     fi
 
-    if [ -x /usr/share/doc/lm-sensors/examples/eeprom/decode-dimms.pl ] ; then
+    if exectest decode-dimms ; then
+      decode-dimms > decode-dimms 2>decode-dimms.error
+    elif [ -x /usr/share/doc/lm-sensors/examples/eeprom/decode-dimms.pl ] ; then
       /usr/share/doc/lm-sensors/examples/eeprom/decode-dimms.pl > decode-dimms 2>decode-dimms.error
     fi