#
# Network Installation Kit
#
# wrapper.srvss: wrapper script for systems support servers
#
# Tom Coppeto
# MIT Network Group
# 17 September 1994
#
# $Header: /afs/net.mit.edu/project/netconf/sun4/src/toplevels/RCS/wrapper.srvss,v 1.1 94/09/18 11:54:14 tom Exp $
#
#!/bin/csh -f

set info = "install for sys support servers: last updated 9/1/94 by tom "
set path = (/bin /usr/bin /usr/ucb)

if(`whoami` != root) then
	echo "You must be root to run this installation package."
	exit 1
endif

/bin/rm -rf /usr/tmp/mit-install
mkdir /usr/tmp/mit-install
cd /usr/tmp/mit-install

echo $info
echo "retrieving rest of installation from net-dist.mit.edu..."

ftp -n 18.72.0.3 << EOF
user anonymous suninstaller
cd installkits/sunos-4.1x
bin
get dist.tar.Z
quit
EOF

if (! -f dist.tar.Z) then
	echo "unable to ftp installation package. Try again later or seek help."	
	exit 1
endif

#check sum

zcat dist.tar.Z | tar xf -

toplevels/main.srvss

