home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / netmgt / install / preremove < prev    next >
Text File  |  1998-08-19  |  1KB  |  33 lines

  1. #!/bin/sh
  2. #ident    "@(#)preremove    1.2"
  3. #ident    "$Header: /SRCS/esmp/usr/src/nw/pkg/netmgt/preremove,v 1.1 1994/08/04 16:06:37 cyang Exp $"
  4.  
  5. PKGMSG=${PKGINST}.pkg
  6. LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}
  7.  
  8. if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ];
  9. then
  10.    if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
  11.     -d /usr/lib/locale/${LOCALE}/LC_MESSAGES ];
  12.    then
  13.     cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
  14.        /usr/lib/locale/${LOCALE}/LC_MESSAGES
  15.    fi
  16. fi
  17.  
  18. CONTENTS=/var/sadm/install/contents
  19. FAILURE=1    #can not proceed.
  20.  
  21. CIM_DEPEND=`pfmt -s -error -g ${PKGMSG}:1 " The system monitoring \
  22. agents are installed on the system and depend on the package \
  23. being removed.  If removal of this package occurs, it will render \
  24. the system monitoring agents inoperative.  Removal of this package requires \
  25. that the Advanced Platform Support package be removed first." ${NAME} 2>&1`
  26.  
  27. grep "cpqcimactive" $CONTENTS >/dev/null 2>&1 && { 
  28.     message ${CIM_DEPEND}
  29.     exit $FAILURE
  30. }
  31. exit 0
  32.  
  33.