#!/bin/sh
# $Header: /afs/athena.mit.edu/astaff/project/layerdev/src/conf/hp/afs.add,v 1.1 94/07/23 16:38:05 brlewis Exp Locker: brlewis $

STATE=$1
SRCDIR=$2

if [ ! -d /usr/vice ]; then
	mv -f /usr/vice /usr/vice.old
	ln -s /var/athena/usr/vice /usr/vice
fi

test -d /usr/vice/cache || mkdir /usr/vice/cache

if [ ! -d /usr/vice/etc/dkload ]; then
	mkdir /usr/vice/etc/dkload
	cp -p /afs/athena.mit.edu/system/layer/hpbin/dkload/* /usr/vice/etc/dkload
fi

rm -f /usr/vice/etc/afsd
cp -p /afs/athena.mit.edu/system/layer/hpbin/afsd /usr/vice/etc/afsd

if [ ! -f /usr/vice/etc/cacheinfo ]; then
	echo "/afs:/usr/vice/cache:8000" > /usr/vice/etc/cacheinfo
fi

if [ ! -d /afs ]; then
	mkdir /afs
fi

exit 0
