#!/bin/sh -f

#
#
# Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved
#
# "@(#)packages.sh	3.2 00/11/27 Sun Microsystems"
#

PATH=$PATH:/usr/bin:/usr/sbin

echo "Patch listing"
ls -lt /var/sadm/patch
echo " "

echo "patchadd -p listing"
patchadd -p
echo " "

echo "Packages"
/usr/bin/pkginfo -l
echo " "

# We need to know if our packages are correct
# If package is not installed the pkgchk will error
# this is OK as the reader of the file should understand this.
 
echo "SunScreen Packages"

for pkg in \
SUNWbdc \
SUNWbdcx \
SUNWdthj \
SUNWdtnsc \
SUNWes \
SUNWesx \
SUNWfwcnv \
SUNWhttp \
SUNWicgSA \
SUNWicgSD \
SUNWicgSF \
SUNWicgSM \
SUNWicgSS \
SUNWkeymg \
SUNWkusup \
SUNWkisup \
SUNWkdsup \
SUNWrc2 \
SUNWrc4 \
SUNWrc4x \
SUNWdes \
SUNWdesx \
SUNWsafe \
SUNWsafex \
SUNWrc4s \
SUNWrc4sx \
SUNWsman  \
SUNWcryr \
SUNWcryrx
do 
    echo "\nChecking $pkg \c"
    pkgchk $pkg 2>&1
done
