home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nwnet
/
install
/
preremove
< prev
next >
Wrap
Text File
|
1998-08-19
|
1KB
|
44 lines
#ident "@(#)preremove 1.4"
#!/bin/sh
#ident "$Header: $"
PKGMSG=${PKGINST}.pkg
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 [ -x /usr/sbin/statnps ]
then
if /usr/sbin/statnps
then
message `pfmt -s nostd -g ${PKGMSG}:3 "The NetWare Protocol Stack is running.\nYou must run stopnps before removing the nwnet package! " 2>&1`
exit 3
fi
fi
#
# Check if there are any netcfg chains associated with ipx and, if so, warn
# the user to remove them by running netcfg.
#
netcfg -s | fgrep -e 'ipx#' -e '#ipx' > /dev/null 2>&1
if [ $? -eq 0 ]
then
echo "\nYou must run netcfg and remove all instances of the IPX/SPX protocol\nbefore removing the nwnet package."
exit 3
fi
rm -rf /etc/netware/*.pid > /dev/null 2>&1
exit 0