# 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: mitnet-inst.sh,v 1.28 1996/03/10 20:18:21 ghudson Exp ghudson $
#	$Source: /mit/netbsd/dev/install/server/RCS/mitnet-inst.sh,v $

# /tmp/vars inputs:
#	mitnet_inst	whether to run MITnet installation
#	distsite	distribution site for FTPing tarfiles
#	installdir	installation directory for FTPing tarfiles

. /tmp/vars
. /utils

if [ "$mitnet_inst" != "yes" ]; then
	exit 0
fi

echo ""
echo "MITnet installation"
echo "-------------------"

# We want to replace these symlinks.
rm -f /mnt/etc/localtime
rm -f /mnt/etc/named.boot

cd /mnt
ftp -n $distsite << EOM
user anonymous netbsdinstaller@
cd $installdir
bin
get mitnet.tar.gz "|/extract mitnet"
EOM

echo ""
echo "The MITnet installation is now complete."

sync; sleep 1

