Support i2c-tools's decode-dimms
[grml-hwinfo.git] / grml-hwinfo
index be80cd6..ed48463 100755 (executable)
@@ -242,6 +242,10 @@ cd "${OUTDIR}" || exit 1
   exectest acpi && acpi > acpi 2> acpi.error && acpi -v > acpi.version
   [ -r /proc/apm/ ] && apm > apm
 
+  if exectest mcelog ; then
+    mcelog > mcelog 2>mcelog.error
+  fi
+
   # kernel stuff
   if [ -r /proc/config.gz ] ; then
     zcat /proc/config.gz > kernelconfig
@@ -281,7 +285,18 @@ cd "${OUTDIR}" || exit 1
 
     exectest dconf && dconf -o dconf
 
-    if [ -x /usr/share/doc/lm-sensors/examples/eeprom/decode-dimms.pl ] ; then
+    if exectest mcelog ; then
+      mcelog --dmi > mcelog_dmi 2>mcelog_dmi.error
+    fi
+
+    if exectest edac-util ; then
+      edac-util > edac-util 2>edac-util.error
+      edac-util --report=full > edac-util_report 2>edac-util_report.error
+    fi
+
+    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