xref: /openbmc/phosphor-debug-collector/tools/dreport.d/plugins.d/hwmon (revision 9b18bf2d3ee4d15f2af3f8cc407e8dc74b2dec6b)
1#!/usr/bin/env bash
2#
3# config: 2 50
4# @brief: Collect hwmon information
5#
6
7. $DREPORT_INCLUDE/functions
8
9file_name="hwmon.log"
10if [ -d "/sys/class/hwmon/" ]; then
11    add_cmd_output "grep -r . /sys/class/hwmon/*" "$file_name" "hwmon"
12fi
13