#
# Athena-specific startup activities.
# 
# $Id: rc.athena,v 1.1 1996/03/10 19:24:45 ghudson Exp $
# $Source: /afs/sipb.mit.edu/project/sipb-athena/repository/src/etc/arch/netbsd/rc.athena,v $

OSRELEASE=`/usr/sbin/sysctl -n kern.osrelease | sed 's/\./_/'`
LIBAFS=/usr/vice/etc/dkload/libafs${OSRELEASE}.o
if [ ! -f $LIBAFS ] ; then
  LIBAFS=/usr/vice/etc/dkload/libafs.o
fi
/sbin/modload -o /usr/vice/etc/dkload/netbsd_afs -eafsmodload \
	$LIBAFS
/usr/vice/etc/afsd

/etc/athena/config_afs
echo -n "Athena startup utilities:"
echo -n " gettime"
/etc/athena/gettime -s kerberos > /dev/null
echo -n " zhm"
/etc/athena/zhm &
echo -n " ldconfig"
ldconfig /usr/X11/lib /usr/athena/lib
echo ""
echo "Cleaning up lockers"
/bin/athena/detach -O -n -h -a
