Skip to content

Commit

Permalink
hw-mgmt: Add indicator for VPD parsing completion
Browse files Browse the repository at this point in the history
Set attributes "events_ready" to 1 after VPD parsing is
done.

Signed-off-by: Vadim Pasternak <[email protected]>
  • Loading branch information
vadimp-nvidia authored and sholeksandr committed Jul 20, 2023
1 parent 819658b commit b94a921
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions usr/usr/bin/hw-management-chassis-events.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,10 @@ if [ "$1" == "add" ]; then
esac
fi
;;
vpd_info)
hw-management-vpd-parser.py -t SYSTEM_VPD -i "$3""$4"/eeprom -o "$eeprom_path"/vpd_data
echo 1 > $config_path/events_ready
;;
*)
;;
esac
Expand Down
1 change: 1 addition & 0 deletions usr/usr/bin/hw-management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2163,6 +2163,7 @@ do_start()
connect_platform
sleep 1
enable_vpd_wp
echo 0 > $config_path/events_ready
/usr/bin/hw-management-start-post.sh

if [ -f $config_path/max_tachos ]; then
Expand Down

0 comments on commit b94a921

Please sign in to comment.