home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh -f
-
- cd /usr/demos/General_Demos/egghead/bin
-
- setenv DISPLAY localhost:0.0
- setenv HOME /tmp
-
- onintr INTERRUPT
-
- # Setup sound
- set SOUNDADF =
- set ans = "YES"
-
- switch ("$ans")
- case "YES":
- set tmpfile = "$HOME/.eeGGgg.tmp"
- set lc = `ps -ef | grep awd > $tmpfile; wc -l $tmpfile`
- if ( $lc[1] != 3 ) then
- ./awd
- endif
- set SOUNDADF = "-s sound.adf"
- breaksw
-
- case "ABORT":
- goto ABORT
- breaksw
- endsw
-
-
- # Setup the default execution environment for egghead
-
- setenv DHOST `uname -n`
-
-
- # STEREO CHECK
- set stereo = "NO"
-
- switch ("$stereo")
- case "YES":
-
- # Stereo mode/setmon should be done globally, not locally!
-
- # su root -c "/usr/gfx/setmon -x 960x680_108s; /usr/gfx/stopgfx; /usr/gfx/startgfx &"
-
- ./ski -b $SOUNDADF vega_stereo.adf
-
- # xconfirm -t "Remember to reset vof as root: setenv DISPLAY :0.0; /usr/gfx/setmon -x 60HZ; /usr/gfx/stopgfx; /usr/gfx/startgfx &"
-
- # su root -c "/usr/gfx/setmon -x 60HZ; /usr/gfx/stopgfx; /usr/gfx/startgfx &"
- breaksw
-
- case "NO":
- ./ski -b $SOUNDADF vega.adf
- breaksw
-
- case "ABORT":
- goto ABORT
- breaksw
-
- endsw
-
- ipcrm -M 0x12345
- exit 0
-
- INTERRUPT:
- killall ski ski-g
- ipcrm -M 0x12345
-
- ABORT:
- echo "User aborted Egghead demo"
- killall xconfirm
- exit 0
-
-