home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 2
/
hotmix_v02.iso
/
Intro
/
start.flag
< prev
next >
Wrap
Text File
|
1992-10-16
|
1KB
|
52 lines
#! /bin/sh
#
# added code to place new showcase window in place depending on
# what type of graphics hardware the user has.
#
# [ Fri Oct 2 14:26:15 1992 nlouie ]
#
# start.flag
#
# This script stops showcase from displaying any other flag
# screens that were started with the start.flag script.
# It then starts showcase in the foreground, view-only, full-color
# mode (fvb) with the flag file ($1) as input.
#
# To run the script, type: start.flag flagfile
# (where flagfile is a file in the ../flags directory)
#
# The last 2 lines
# capture the process id (PID) of this instance of showcase, store
# the PID in a file (/tmp/.endflag), and make this file a shell script.
# This way you can stop this particular instance of showcase
# with the shell script end.flag, which just executes the
# /tmp/.endflag file.
#
#end.flag
# the following is the startups for the truecolor displays:
CDDISPTYPE='none'; export CDDISPTYPE
cd $HOTMIXDIR/Intro
# set the display type based on the graphics card.
hinv | grep GR2 > /usr/tmp/cdgrep
if [ -s /usr/tmp/cdgrep ]; then
CDDISPTYPE='TRUEC'
export CDDISPTYPE
else
CDDISPTYPE="PSEUDO"
export CDDISPTYPE
fi
/bin/rm /usr/tmp/cdgrep
if [ $CDDISPTYPE = "TRUEC" ]; then
showcase -fbv -S532,200,1091,544 ./$1 &
else
showcase -fbv -S270,167,828,509 ./$1 &
fi
echo kill $child > /tmp/.endflag && chmod 755 /tmp/.endflag