home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / utilities / boot / magicscrip.lha / MagicScripts / RanBootPic.sh < prev    next >
Encoding:
Text File  |  1995-01-15  |  1.3 KB  |  34 lines

  1. # Random Boot Screen for BootScreen using CSH
  2. # and DoIcon.
  3. # Can be placed in your Startup-Sequence
  4. # EG.
  5. #   Makedir >NIL: RAM:ENV
  6. #   Assign >NIL: ENV: RAM:ENV
  7. #   resident dh0:Applications/csh/csh add
  8. #   DH0:Applications/CSH/csh -cLnN >NIL: DH0:Applications/CSH/RanBootPic.sh
  9. #   DH0:C/BootScreen
  10. #
  11. # $VER: MagicExtract 1.0 15/1/95 Jonathan Benson
  12. #
  13. # Edit to suit your requirements.
  14. #
  15.  
  16. set _histnum  @rnd( 0 )  #  @mix uses the variable _histnum to generate its
  17.              # so called `random' selection.
  18. set _histnum  @strright( $_histnum 3 )
  19. # NOTE: Do not allow the following line to exceed it's current length.
  20. #       the randomness will be greatly reduced if you do.
  21. #       I don't know why.  Probably a limit on the function @mix.
  22. set BootPic  @mix( pvtnggrp.iff pvtng00k.iff pvxfile1.iff pvxfile6.iff xf_boot.iff xf_boot2.iff Workbench3929.iff )
  23. set BootPic @strhead( " " $BootPic )
  24. DH0:C2/DoIcon DH0:Prefs/BootScreen ctt=\042PIC=DH1:Pics/IFFS/$BootPic\042 num=3
  25.  
  26. # Thanks to Joseph Luk for BootScreen.
  27. # and to Lars Eilebrecht for DoIcon.
  28. # And of course to the following for CShell:
  29. #     Shell V2.04 (C)Copyright 1986, Matthew Dillon, All Rights Reserved
  30. #     Shell V2.04M-V2.07M by Steve Drew
  31. #     Shell V2.08MI, V3.xxA and V4.xxA by Carlo Borreo & Cesare Dieni
  32. #     Shell V5.xxL by U. Dominik Mueller
  33. #     Shell V5.20+ by Andreas M. Kirchwitz
  34.