#!/bin/sh -f

#	installit
#
#	Derived from:	Template supplied by SGI for hot mix installation
#
#	Author:		Anthony Shaughnessy
#
#	Created on:	15th June 1993
#
#	Sccs ID:	@(#)installit.sh	1.3 8/11/93
#
#	Coding Stds.:	2.0
#
#	Purpose:	To act as a wrapper for the installation process from
#			the hot mix CD. This script is the top level. It calls
#			xwsh to open a window to run the InstallIt2 script
#			as root. This script is supposed to be called when the
#			user presses the install button on the hot mix CD.
#

# Change the value of SOFTPCDIR to whatever is relevant for SoftPC on the
# hot mix CD. The scripts
# must be held in the same directory as the SoftPC package files. We have not
# been told by SGI what this directory should be, and so we must leave it to 
# them to change this value.
SOFTPCDIR=${SOFTPCDIR:=$HOTMIXDIR/demos/MAC_PC/Insignia}	export SOFTPCDIR
SPCHOME=/usr/lib/SoftPC		export SPCHOME
PATH=$SPCHOME/bin:$PATH		export PATH

xwsh -bg royalblue -fg white -fn a16 \
        -geom 80x20+100+100 -cursorfg violetred1 -cursorbg violetred1 \
        -title "Install SoftPC" \
        -e /bin/sh -c \
        "echo You must be root to install SoftPC...; \
        cd $SOFTPCDIR ; \
        su root -c './InstallIt2'"
