blob: f146e478f1c16bf912885a87a6b167bc8893d4bf [file] [log] [blame]
Marri Devender Rao33700c72022-04-12 03:34:29 -05001#!/usr/bin/env bash
2#
3# config: 2 50
4# @brief: Collect VPD persistent data
5#
6
7. $DREPORT_INCLUDE/functions
8
9file_name="/var/lib/vpd"
10desc="VPD persistent data"
11
12if [ -d "$file_name" ]; then
13 add_copy_file "$file_name" "$desc"
14else
15 log_info "No $desc data"
16fi
17
18desc="Bad VPD"
19dir_name="/tmp/bad-vpd"
20
21if [ -f $dir_name ]; then
22 add_copy_file "$dir_name" "$desc"
23else
24 log_info "No $desc data"
25fi