#!/bin/sh
#
# MIT Sun4 RC script. Installation assumes this file does not change.
# Customize behavior in rc.conf.
#
# Tom Coppeto
# MIT Network Services
# 6/27/91
#
# Last Modified 6 January 1996 by jyp
# $Author: testuser $
#

echo ""
echo  "Turning on named, afsd, and friends for help in further installation... "

. /etc/athena/rc.conf

echo "test1"

if [ "${MAILSERVER}" = "true" ]; then
	echo "sendmail..."
        rm -f /usr/spool/mqueue/x*
	rm -f /usr/spool/mqueue/t*
	rm -f /usr/spool/mqueue/l*
	/usr/lib/sendmail -bd -q30m
fi

echo "test2"

if [ -x /etc/athena/rc.local ]; then
	echo "/etc/athena/rc.local"
	/etc/athena/rc.local
fi

echo "test3"

if [ "${NOTIFYUPDATE}" = "true" -o "${AUTOUPDATE}" = "true" ]; then
	echo "checking for updates..."
        if [ -x /usr/athena/etc/update_check ]; then
		/etc/athena/update_check
 	elif [ -x /etc/athena/update_check ]; then
		/etc/athena/update_checkn
	fi
fi

echo "done!"
echo ""
exit 0

