blob: 19b223c31701e384a1c51db2552c2cdc3366f43a [file] [log] [blame]
Swarnendu-R-C0df38f72024-07-19 06:38:32 -05001#!/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
9desc="Minimum firmware level info"
10file_name="min-fw-level"
11
12# Check if already it has been populated via redundantosrelease plugin,
13# if not then populate
14if [ -z "$MIN_FW_VERSION_LEVEL" ]; then
15 populate_redundant_os_n_min_fw_info
16fi
17
18if [ -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"
21else
22 log_warning "No min FW level info available"
23fi
24