Skip to content

Commit

Permalink
hw-mgmt: scripts: add missing temperature links for voltmon on SN2201.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Shych <[email protected]>
  • Loading branch information
mshych committed Aug 9, 2023
1 parent e72eba6 commit a2f78fb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions usr/usr/bin/hw-management-chassis-events.sh
Original file line number Diff line number Diff line change
Expand Up @@ -810,16 +810,17 @@ if [ "$1" == "add" ]; then
# For SN2201 indexes are from 0 to 9.
for i in {0..9}; do
check_n_link "$3""$4"/in"$i"_input $environment_path/"$2"_in"$i"_input

check_n_link "$3""$4"/in"$i"_alarm $alarm_path/"$2"_in"$i"_alarm

check_n_link "$3""$4"/curr"$i"_input $environment_path/"$2"_curr"$i"_input

check_n_link "$3""$4"/power"$i"_input $environment_path/"$2"_power"$i"_input

check_n_link "$3""$4"/curr"$i"_alarm $alarm_path/"$2"_curr"$i"_alarm

check_n_link "$3""$4"/power"$i"_alarm $alarm_path/"$2"_power"$i"_alarm
check_n_link "$3""$4"/temp1_input $thermal_path/"$prefix"_temp1_input
check_n_link "$3""$4"/temp1_max $thermal_path/"$prefix"_temp1_max
check_n_link "$3""$4"/temp1_crit $thermal_path/"$prefix"_temp1_crit
check_n_link "$3""$4"/temp1_lcrit $thermal_path/"$prefix"_temp1_lcrit
check_n_link "$3""$4"/temp1_max_alarm $alarm_path/"$prefix"_temp1_max_alarm
check_n_link "$3""$4"/temp1_crit_alarm $alarm_path/"$prefix"_temp1_crit_alarm
done
;;
*)
Expand Down

0 comments on commit a2f78fb

Please sign in to comment.