#!/bin/csh -f
#
# Network Installation Kit
#
# test.client: test script for uncompressing tarfiles
#
#


set pltfrm = `/usr/bin/uname`

if ($pltfrm == "SunOS") then
	set info = "mini-install: last updated 6/1/94 by tom "
	set path = (/bin /usr/bin /usr/ucb)
else
	set info = "irix-52 mini-install: last updated 6/29/94 by tom "
	set path = (/bin /usr/bin /usr/ucb /usr/bsd)
endif

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


#check sum

zcat dist.tar.Z | tar xf -
rm -f dist.tar.Z

if ($pltfrm == "IRIX") then
	zcat sgiload-temp.tar.Z | tar xf -
	rm -f sgiload-temp.tar.Z	
	mv sgiload ./afs
endif

# When using SGI get these libraries 

if ($pltfrm != "SunOS") then
	if(! -f /usr/lib/libsocket.so) then
        	cp -p net/libsocket.so /usr/lib
	endif
	if(! -f /usr/lib/libnsl.so) then
        	cp -p net/libnsl.so /usr/lib
	endif
endif

./toplevels/main.client


