#!/bin/ksh
cd `/usr/bin/dirname $0`

remove()
{
  # remove() - do a pkgrm, but be silent if the package isn't there
  #   $1 - the package name

  /usr/bin/pkginfo -q $1
  if [ $? -eq 0 ]; then
        /usr/sbin/pkgrm -n $1
  fi
}

remove SUNW*
cd `uname -p`
remove SUNW!(ws)
remove SUNWwsr 2> /dev/null
remove SUNWws 2> /dev/null
