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

  1. #ident    "@(#)preremove    1.2"
  2. #!/bin/sh
  3.  
  4. PFMT1="You have NUCAM or NUCFS file system(s) remaining mounted.\nThey will be deactivated by this package remove.\n"
  5.  
  6. PKGMSG=uvlnuc
  7. LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}
  8.  
  9. if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ]; then
  10.     if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
  11.          -d /usr/lib/locale/${LOCALE}/LC_MESSAGES ]; then
  12.         cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
  13.            /usr/lib/locale/${LOCALE}/LC_MESSAGES
  14.     fi
  15. fi
  16.  
  17. if [ -f /etc/init.d/nuc ]
  18. then
  19.     sh  /etc/init.d/nuc stop > /dev/null 2>&1
  20.     # if we still have NUCFS or NUCAM mounts, print warnings.
  21.         GREP1=`/usr/bin/grep nucfs /etc/mnttab`
  22.         GREP2=`/usr/bin/grep nucam /etc/mnttab`
  23.         if [ "${GREP1}" != "" -o "${GREP2}" != "" ]
  24.     then
  25.         pfmt -s nostd -g ${PKGMSG}:367 "$PFMT1"
  26.     fi
  27. fi
  28.  
  29.  
  30. exit 0
  31.