#	START NEW ARIX SCCS HEADER
#
#	@(#) INSTALL: version 25.1 created on 11/27/91 at 14:32:37
#
#	Copyright (c) 1990 by Arix Corporation
#	All Rights Reserved
#
#	@(#)INSTALL	25.1	11/27/91 Copyright (c) 1990 by Arix Corporation
#
#	END NEW ARIX SCCS HEADER
#

# Installation script to install SGS
#
# Installs an SGS in the current directory
#

# Prompt for yes or no answer - returns non-zero for no
askyn() {
	while	echo "$* (y/n) \c">&2
	do	read yn rest
		case $yn in
		     [yY]) return 0 		                  ;;
	             [nN]) return 1		                  ;;
		        *) echo "\nPlease answer y, n, or q" >&2  ;;
		esac
	done
}


echo "\n\n**** Installation script for S90 3.3 DOMESTIC OVERLAY ****\n"
echo ">>>  This is the 3.3 Domestic Overlay, dated June 28, 1991  <<<\n"
echo ""

if [ "$LOGNAME" != "root" -a "$LOGNAME" != "sysadm" ]
then
	echo "Sorry, you'd better be root";
	exit;
fi

if [ $# -ne 2 ]
then
	echo "Enter the name of this system's rewind device ->  \c"
	read REWIND
	echo "Enter the name of this system's non-rewind device ->  \c"
	read NOREWIND
else
	REWIND=$1
	NOREWIND=$2
fi

# Position the tape past the first file

<$REWIND;<$NOREWIND

# Read in the overlay
echo "\nReading in files for the domestic overlay\n"
cd /
/bin/cpio -idmuvB < $REWIND

sync

echo "\n(Note:  you CAN run this again to correct any mistakes!)\n"
echo "\nThe installation of the 3.3p1 domestic overlay has been completed."

exit 0
