Swarnendu-R-C | 0df38f7 | 2024-07-19 06:38:32 -0500 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # config: 2 50 |
| 4 | # @brief: Collect Min FW level version info |
| 5 | |
| 6 | # shellcheck disable=SC1091 |
| 7 | . "$DREPORT_INCLUDE/functions" |
| 8 | |
| 9 | desc="Minimum firmware level info" |
| 10 | file_name="min-fw-level" |
| 11 | |
| 12 | # Check if already it has been populated via redundantosrelease plugin, |
| 13 | # if not then populate |
| 14 | if [ -z "$MIN_FW_VERSION_LEVEL" ]; then |
| 15 | populate_redundant_os_n_min_fw_info |
| 16 | fi |
| 17 | |
| 18 | if [ -n "$MIN_FW_VERSION_LEVEL" ]; then |
| 19 | command="printf \"\nMIN_FW_LEVEL=%s\n\" \"\$MIN_FW_VERSION_LEVEL\"" |
| 20 | add_cmd_output "$command" "$file_name" "$desc" |
| 21 | else |
| 22 | log_warning "No min FW level info available" |
| 23 | fi |
| 24 | |