blob: 590b9ed075d406957f10a74632e081786aed4e25 [file] [log] [blame]
#!/usr/bin/env bash
#
# config: 2 20
# @brief: Get fanctl dump details
#
. $DREPORT_INCLUDE/functions
desc="fan control dump"
file_name="fan_control_dump.json"
# collect data only if fanctl is present
if [ -e "/usr/bin/fanctl" ]; then
command="rm -f /tmp/fan_control_dump.json; /usr/bin/fanctl dump; \
cat /tmp/fan_control_dump.json"
add_cmd_output "$command" "$file_name" "$desc"
rm -f /tmp/fan_control_dump.json
fi