#!/bin/sh
# Copyright (c) 1995 by the Student Information Processing Board
# 	  of the Massachusetts Institute of Technology
#  
# Permission to use, copy, modify, and distribute this software
# and its documentation for any purpose and without fee is
# hereby granted, provided that the above copyright notice
# appear in all copies and that both that copyright notice and
# this permission notice appear in supporting documentation,
# and that the names of M.I.T. and the M.I.T. S.I.P.B. not be
# used in advertising or publicity pertaining to distribution
# of the software without specific, written prior permission.
# M.I.T. and the M.I.T. S.I.P.B. make no representations about
# the suitability of this software for any purpose.  It is
# provided "as is" without express or implied warranty.
#
#	$Id: setup.sh,v 1.25 1995/12/25 07:33:33 ghudson Exp ghudson $
#	$Source: /mit/netbsd/dev/install/server/RCS/setup.sh,v $

export LD_LIBRARY_PATH=/nfs

kernvers=`sysctl -n kern.osrelease | sed 's/\./_/'`
modload -o /tmp/netbsd_afs -eafsmodload /nfs/libafs${kernvers}.o
afsd -memcache -logfile /tmp/AFSLog

if [ ! -r /srvd/install/install ]; then
	echo "Failed to mount AFS.  Send mail to netbsd-help@mit.edu for"
	echo "assistance, or call at 253-7788.  Type 'halt' to halt and reboot"
	echo "your machine."
	exit 1
fi

# XXX the cell dependency here could become a maintenance issue
fs setcell -c sipb -suid

echo "Continuing installation from /srvd/install/install."
exec /srvd/install/install
