home *** CD-ROM | disk | FTP | other *** search
- #ident "@(#)preremove 1.2"
- #!/bin/sh
-
- PFMT1="You have NUCAM or NUCFS file system(s) remaining mounted.\nThey will be deactivated by this package remove.\n"
-
- PKGMSG=uvlnuc
- LOCALE=${LC_ALL:-${LC_MESSAGES:-${LANG:-"C"}}}
-
- if [ ! -f /usr/lib/locale/${LOCALE}/LC_MESSAGES/${PKGMSG} ]; then
- if [ -f ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} -a \
- -d /usr/lib/locale/${LOCALE}/LC_MESSAGES ]; then
- cp ${REQDIR}/inst/locale/${LOCALE}/${PKGMSG} \
- /usr/lib/locale/${LOCALE}/LC_MESSAGES
- fi
- fi
-
- if [ -f /etc/init.d/nuc ]
- then
- sh /etc/init.d/nuc stop > /dev/null 2>&1
- # if we still have NUCFS or NUCAM mounts, print warnings.
- GREP1=`/usr/bin/grep nucfs /etc/mnttab`
- GREP2=`/usr/bin/grep nucam /etc/mnttab`
- if [ "${GREP1}" != "" -o "${GREP2}" != "" ]
- then
- pfmt -s nostd -g ${PKGMSG}:367 "$PFMT1"
- fi
- fi
-
-
- exit 0
-