home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / ddx / macII / def.x11start < prev    next >
Encoding:
Text File  |  1989-12-05  |  784 b   |  35 lines

  1. : "@(#) /usr/lib/X11/.x11start        Shell Script for X11"
  2.  
  3. if [ -r /dev/oldmsgs ]
  4. then
  5.       # Do a tail to display any new console messages in this window,
  6.       # using -1c to ensure that we don't see any old messages.  Start
  7.       # this at the beginning of this script so that we see any messages
  8.       # generated while this script executes.
  9.       tail -1cf /dev/oldmsgs &
  10.       tailproc=$!
  11. fi
  12.  
  13. xstdcmap -all
  14. xset m 4 2
  15. twm &
  16. sleep 1
  17. xclock -analog -update 60 -geometry 96x96-2-2 &
  18. sleep 1
  19. xload -geometry 96x96-100-2 &
  20. sleep 1
  21. xlogo -fg grey -bg maroon -geometry 96x96-200-2 &
  22. sleep 1
  23. xterm -geometry 80x24+40+88 -title "`hostname` 1" &
  24. sleep 1
  25. xterm -geometry 80x24+60+108 -title "`hostname` 2" &
  26. sleep 1
  27.  
  28. if [ "$tailproc" ]
  29. then
  30.     $SHELL
  31.     kill $tailproc
  32. else
  33.     exec $SHELL
  34. fi
  35.