#	@(#)rmaddlock	1.1	one of many exit routines
# rmaddlock:
#	Exit routine: leaves password file lock on the assumption that
#	we did not create it.  Exits with the status of the most
#	recently executed command.  Must be invoked with the dot (.)
#	command or variables will be undefined.
# Author:  Larry Bamford, AO, SSD, COB, STS, ETC, 2/16/89

exitval=$?
#echo REMEMBER TO CHANGE PATH AND DIR OF rmaddlock BEFORE INSTALLING
#PATH=.:/adm:/bin:/etc:/usr/bin	# for testing
PATH=/adm:/bin:/etc:/usr/bin	# for safety
export PATH
rm -rf $TMPFILES >/dev/null 2>&1
rmlock $ADDLOCK ||
echo "Warning!  Could not remove $ADDLOCK" 1>&2; exit 5
exit ${exitval:-0}
