home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nwsrvr
/
install
/
preremove
< prev
next >
Wrap
Text File
|
1998-08-19
|
659b
|
44 lines
#
# @(#)preremove 1.2
#
# Preremove for the nws package.
#
if [ "$RANDOM" = "$RANDOM" ]
then
exec /usr/bin/winxksh $0 $*
fi
# load misc functions from nwsrvr
. /var/sadm/pkg/nwsrvr/install/misc_func
SetLocale
# Load strings
. ${LANGDEP_SCRIPTS}/set_strings
#
trap "" 2
#
# check to see if the server running
#
TMP=`ps -ef|grep "NWS"|wc -l`
if [ $TMP -gt 1 ]
then
echo $MUST_STOP_NWS
exit 3
fi
#
# check for empty _netware directory ==> dsuninstall has been run.
#
if [ -f $SYSVOL/_netware/entry.nds ]
then
echo $MUST_DSINSTALL_NWS
exit 3
fi
# copy voltab to /tmp so we may use it in postremove
cp /etc/netware/voltab /tmp > /dev/null 2>&1
exit 0