diff options
Diffstat (limited to 'meta-openpower/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/guard')
-rw-r--r-- | meta-openpower/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/guard | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-openpower/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/guard b/meta-openpower/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/guard new file mode 100644 index 000000000..cdd461fec --- /dev/null +++ b/meta-openpower/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/guard @@ -0,0 +1,18 @@ +#!/bin/bash +# +# config: 2 40 +# @brief: Collect GUARD record information. +# + +. $DREPORT_INCLUDE/functions + +desc="GUARD Records" +file_name="/var/lib/phosphor-software-manager/pnor/prsv/GUARD" + +# Check file is present and not empty. +if [ ! -s "$file_name" ]; then + log_info "No $desc" + exit 0 +fi + +add_copy_file "$file_name" "$desc" |