1#!/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
26