blob: 590b9ed075d406957f10a74632e081786aed4e25 [file] [log] [blame]
Marri Devender Rao55e92762022-03-25 04:33:33 -05001#!/usr/bin/env bash
2#
3# config: 2 20
4# @brief: Get fanctl dump details
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="fan control dump"
10file_name="fan_control_dump.json"
11
12# collect data only if fanctl is present
13if [ -e "/usr/bin/fanctl" ]; then
14
Patrick Williams9d26e4f2022-12-08 06:46:44 -060015 command="rm -f /tmp/fan_control_dump.json; /usr/bin/fanctl dump; \
Marri Devender Rao55e92762022-03-25 04:33:33 -050016 cat /tmp/fan_control_dump.json"
17
Patrick Williams9d26e4f2022-12-08 06:46:44 -060018 add_cmd_output "$command" "$file_name" "$desc"
19 rm -f /tmp/fan_control_dump.json
Marri Devender Rao55e92762022-03-25 04:33:33 -050020
21fi