#!/bin/bash
#############################################################
# Name:        Supportconfig Plugin for NOWS SBE Simba DLU Component
# Description: Gathers DLU and pGina simba component
#              troubleshooting information
# License:     GPLv2
# Author:      Randy Goddard (randage@gmail.com)
#              Jason Record (jrecord@novell.com)
# Modified:    2010 Oct 21
#############################################################

SVER=2.02
RCFILE="/usr/lib/supportconfig/resources/scplugin.rc"

[ -s $RCFILE ] && . $RCFILE || { echo "ERROR: Initializing resource file: $RCFILE"; exit 1; }

section_header "Supportconfig Plugin for NOWS SBE Simba DLU Component, v${SVER}"

plugin_command "rpm -qa | egrep -i 'dlu' | sort"
RPMLIST=$(rpm -qa | egrep -i 'dlu' | sort)
if [ -z "$RPMLIST" ]; then
  echo "ERROR: Simba DLU package(s) not installed"
  echo
  exit 111
fi

for THISRPM in $RPMLIST
do
	validate_rpm $THISRPM
done

