home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 3
/
hotmix_v03.iso
/
Intro
/
start.flag
< prev
next >
Wrap
Text File
|
1993-02-04
|
1KB
|
50 lines
#! /bin/sh
#
# added code to place new showcase window in place depending on
# what type of graphics hardware the user has.
#
# [ Fri Jan 29 1993 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 screen size.
SCREENSIZE=`xdpyinfo | grep dimensions | awk '{print $2}'`
if [ $SCREENSIZE = "1024x768" ]; then
CDDISPTYPE="PSEUDO"
export CDDISPTYPE
else
CDDISPTYPE='TRUEC'
export CDDISPTYPE
fi
if [ $CDDISPTYPE = "TRUEC" ]; then
showcase -fbv -S488,250,1048,592 ./$1 &
else
showcase -fbv -S235,200,793,542 ./$1 &
fi
echo kill $child > /tmp/.endflag && chmod 755 /tmp/.endflag