#! /bin/sh ## ## This script ensures that the user uninstalls packages containing ## Netscape Communicator supporting Inetnational security. ## PATH="/usr/bin:${PATH}" SCRIPT=`basename $0` default() { NSPKG="NSCPcom" } ## end of default() check_pkg() { ## ## Check the for previously installed packages ## if [ -n "$PKG_INSTALL_ROOT" ] then pkginfo -R $PKG_INSTALL_ROOT $NSPKG > /dev/null 2>&1 else pkginfo $NSPKG > /dev/null 2>&1 fi if [ $? -eq 0 ] then echo "$SCRIPT: ERROR: <$NSPKG> must be removed before installation can continue." exit 1 fi } ## end of check_pkg() # main() { default check_pkg } ## end of main()