Marri Devender Rao | cf233f1 | 2019-09-25 03:19:29 -0500 | [diff] [blame] | 1 | #!/bin/bash |
2 | # | ||||
3 | # config: 2 40 | ||||
4 | # @brief: Collect GUARD record information. | ||||
5 | # | ||||
6 | |||||
7 | . $DREPORT_INCLUDE/functions | ||||
8 | |||||
9 | desc="GUARD Records" | ||||
10 | file_name="/var/lib/phosphor-software-manager/pnor/prsv/GUARD" | ||||
11 | |||||
12 | # Check file is present and not empty. | ||||
13 | if [ ! -s "$file_name" ]; then | ||||
14 | log_info "No $desc" | ||||
15 | exit 0 | ||||
16 | fi | ||||
17 | |||||
18 | add_copy_file "$file_name" "$desc" |