home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD1.bin / useful / sys / s / user-startup-example < prev   
Encoding:
Text File  |  1995-04-19  |  5.3 KB  |  173 lines

  1. ; This is an example script that can be copied to S:FFCD-Startup, and then
  2. ; run from your S:User-Startup file with:
  3. ;
  4. ;    ; Find and mount the latest FreshFish CD available online.
  5. ;    if EXISTS S:FFCD-Startup
  6. ;        echo "Running S:FFCD-Startup..."
  7. ;        execute S:FFCD-Startup
  8. ;    endif
  9. ;
  10. ; These assigns search for the latest Freshfish CD-ROM or GoldFish CD-ROM
  11. ; available online at boot time and run it's startup sequence.  They also
  12. ; assign FFCD to that CD-ROM, both to make it easier to get to from a CLI
  13. ; and as a flag that a CD-ROM has been found, so as to avoid lots of nested
  14. ; if statements.
  15. ;
  16. ; To support another future CD-ROM, simply clone a block and change the
  17. ; device and script names as appropriate.  To remove support for a
  18. ; particular CD-ROM, just remove the applicable block of commands.
  19.  
  20. ; Look for FreshFish Vol 9 CD-ROM.
  21. assign FFCD: exists >nil:
  22. if warn
  23.     assign FreshFish-Vol9-1: exists >nil:
  24.     if not warn
  25.     echo "Assigning GNU: to FreshFish-Vol9-1:GNU ..."
  26.     assign GNU: FreshFish-Vol9-1:GNU
  27.     echo "Running GNU:Sys/S/GNU-Startup..."
  28.     execute GNU:Sys/S/GNU-Startup
  29.     echo "Assigning USEFUL: to FreshFish-Vol9-1:Useful ..."
  30.     assign USEFUL: FreshFish-Vol9-1:Useful
  31.     echo "Running USEFUL:Sys/S/Useful-Startup..."
  32.     execute USEFUL:Sys/S/Useful-Startup
  33.     assign FFCD: FreshFish-Vol9-1:
  34.     endif
  35. endif
  36.  
  37. ; Look for FreshFish Vol 8 CD-ROM.
  38. assign FFCD: exists >nil:
  39. if warn
  40.     assign FreshFish-Vol8-1: exists >nil:
  41.     if not warn
  42.     echo "Assigning GNU: to FreshFish-Vol8-1:GNU ..."
  43.     assign GNU: FreshFish-Vol8-1:GNU
  44.     echo "Running GNU:Sys/S/GNU-Startup..."
  45.     execute GNU:Sys/S/GNU-Startup
  46.     echo "Assigning USEFUL: to FreshFish-Vol8-1:Useful ..."
  47.     assign USEFUL: FreshFish-Vol8-1:Useful
  48.     echo "Running USEFUL:Sys/S/Useful-Startup..."
  49.     execute USEFUL:Sys/S/Useful-Startup
  50.     assign FFCD: FreshFish-Vol8-1:
  51.     endif
  52. endif
  53.  
  54. ; Look for GoldFish Vol 2 (Nov 1994) CD-ROM.
  55. assign FFCD: exists >nil:
  56. if warn
  57.     assign GoldFish-Vol2-1: exists >nil:
  58.     if not warn
  59.     echo "Assigning GNU: to GoldFish-Vol2-1:GNU ..."
  60.     assign GNU: GoldFish-Vol2-1:GNU
  61.     echo "Running GNU:Sys/S/GNU-Startup..."
  62.     execute GNU:Sys/S/GNU-Startup
  63.     echo "Assigning USEFUL: to GoldFish-Vol2-1:Useful ..."
  64.     assign USEFUL: GoldFish-Vol2-1:Useful
  65.     echo "Running USEFUL:Sys/S/Useful-Startup..."
  66.     execute USEFUL:Sys/S/Useful-Startup
  67.     assign FFCD: GoldFish-Vol2-1:
  68.     endif
  69. endif
  70.  
  71. ; Look for FreshFish Vol 7 (Nov/Dec 1994) CD-ROM.
  72. assign FFCD: exists >nil:
  73. if warn
  74.     assign FreshFish-Vol7: exists >nil:
  75.     if not warn
  76.     echo "Assigning GNU: to FreshFish-Vol7:GNU ..."
  77.     assign GNU: FreshFish-Vol7:GNU
  78.     echo "Running GNU:Sys/S/GNU-Startup..."
  79.     execute GNU:Sys/S/GNU-Startup
  80.     echo "Assigning USEFUL: to FreshFish-Vol7:Useful ..."
  81.     assign USEFUL: FreshFish-Vol7:Useful
  82.     assign BSD: FreshFish-Vol7:BSD
  83.     echo "Running USEFUL:Sys/S/Useful-Startup..."
  84.     execute USEFUL:Sys/S/Useful-Startup
  85.     assign FFCD: FreshFish-Vol7:
  86.     endif
  87. endif
  88.  
  89. ; Look for FreshFish Vol 6 (Sep/Oct 1994) CD-ROM.
  90. assign FFCD: exists >nil:
  91. if warn
  92.     assign FreshFish-Sep94: exists >nil:
  93.     if not warn
  94.     echo "Assigning GNU: to FreshFish-Sep94:GNU ..."
  95.     assign GNU: FreshFish-Sep94:GNU
  96.     echo "Running GNU:Sys/S/GNU-Startup..."
  97.     execute GNU:Sys/S/GNU-Startup
  98.     echo "Assigning USEFUL: to FreshFish-Sep94:Useful ..."
  99.     assign USEFUL: FreshFish-Sep94:Useful
  100.     assign BSD: FreshFish-Sep94:BSD
  101.     echo "Running USEFUL:Sys/S/Useful-Startup..."
  102.     execute USEFUL:Sys/S/Useful-Startup
  103.     assign FFCD: FreshFish-Sep94:
  104.     endif
  105. endif
  106.  
  107. ; Look for FreshFish Vol 5 (Jul/Aug 1994) CD-ROM.
  108. assign FFCD: exists >nil:
  109. if warn
  110.     assign FreshFish-Jul94: exists >nil:
  111.     if not warn
  112.     echo "Assigning GNU: to FreshFish-Jul94:GNU ..."
  113.     assign GNU: FreshFish-Jul94:GNU
  114.     echo "Running GNU:Sys/S/GNU-Startup..."
  115.     execute GNU:Sys/S/GNU-Startup
  116.     echo "Assigning USEFUL: to FreshFish-Jul94:Useful ..."
  117.     assign USEFUL: FreshFish-Jul94:Useful
  118.     assign BSD: FreshFish-Jul94:BSD
  119.     echo "Running USEFUL:Sys/S/Useful-Startup..."
  120.     execute USEFUL:Sys/S/Useful-Startup
  121.     assign FFCD: FreshFish-Jul94:
  122.     endif
  123. endif
  124.  
  125. ; Look for FreshFish Vol 4 (May/June 1994) CD-ROM.
  126. ; This CD-ROM split FFCD-Startup into GNU-Startup and Useful-Startup.
  127. assign FFCD: exists >nil:
  128. if warn
  129.     assign FreshFish-May94: exists >nil:
  130.     if not warn
  131.     echo "Assigning GNU: to FreshFish-May94:GNU ..."
  132.     assign GNU: FreshFish-May94:GNU
  133.     echo "Running GNU:Sys/S/GNU-Startup..."
  134.     execute GNU:Sys/S/GNU-Startup
  135.     echo "Running FreshFish-May94:Useful/Sys/S/Useful-Startup..."
  136.     execute FreshFish-May94:Useful/Sys/S/Useful-Startup
  137.     assign FFCD: FreshFish-May94:
  138.     endif
  139. endif
  140.  
  141. ; Look for FreshFish Vol 3 (March/April 1994) CD-ROM.
  142. assign FFCD: exists >nil:
  143. if warn
  144.     assign FreshFish-Mar94: exists >nil:
  145.     if not warn
  146.     echo "Running FreshFish-Mar94:Useful/Sys/S/FFCD-Startup..."
  147.     execute FreshFish-Mar94:Useful/Sys/S/FFCD-Startup
  148.     assign FFCD: FreshFish-Mar94:
  149.     endif
  150. endif
  151.  
  152. ; Look for FreshFish Vol 2 (December 1993) CD-ROM.
  153. assign FFCD: exists >nil:
  154. if warn
  155.     assign FreshFish-Dec93: exists >nil:
  156.     if not warn
  157.     echo "Running FreshFish-Dec93:Useful/s/FFCD-Startup..."
  158.     execute FreshFish-Dec93:Useful/s/FFCD-Startup
  159.     assign FFCD: FreshFish-Dec93:
  160.     endif
  161. endif
  162.  
  163. ; Look for FreshFish Vo1 1 (October 1993) CD-ROM.
  164. assign FFCD: exists >nil:
  165. if warn
  166.     assign FFMCD01: exists >nil:
  167.     if not warn
  168.     echo "Running FFMCD01:Useful/s/FFCD-Startup..."
  169.     execute FFMCD01:Useful/s/FFCD-Startup
  170.     assign FFCD: FFMCD01:
  171.     endif
  172. endif
  173.