;Jaybee's kick-ass Startup-Sequence made especially for his "AmigaInABox" release.
;Do not edit this script unless you know what you are doing!
;If you do edit it and it f*cks up, let me know - email me!
;jaybeee@aiab.freeserve.co.uk - June'01



;--- Start the checks for correct installation...
IF NOT EXISTS libs:bullet.library
  cls
  echo "Welcome to AIAB setup!"
  echo ""
  echo "In a moment you will be prompted to insert your Workbench 3.0/3.1 ADF, which will be used to copy external system files to the harddrive."
  echo ""
  ask "Press return to begin."
  DF0:c/assign >nil: T: ram:
  DF0:c/execute SYS:s/AIAB-Setup/copy-files.script
ENDIF

IF NOT EXISTS envarc:sys/screenmode.prefs
  c:assign >nil: T: ram:
  c:execute SYS:s/AIAB-Setup/set-screenmode.script
ENDIF

IF NOT EXISTS sys:Morris.jpg.info
  c:assign >nil: T: ram:
  c:execute SYS:s/AIAB-Setup/InstallIcons.script
  c:reset
ENDIF
;---End of tests, continue booting...

;---Test for "Crap Boot" option...

c:TestRMB
IF WARN
  assign >nil: T: ram:
  execute >nil: s:dosboot
ENDIF

c:TestLMB
IF WARN
  assign >nil: T: ram:
  execute >nil: s:microboot
ENDIF

;---Start the "Full Boot" option...
c:setpatch >nil:
c:PatchControl >nil:
l:env-handler >NIL:

;run >nil: c:snoopdos HIDE   ; For debugging (!) purposes

c:MCP
devs:monitors/uaegfx

c:adddatatypes >NIL: REFRESH

Path >nil: RAM: SYS:Utilities SYS:System S: SYS:Prefs SYS:Tools SYS:Rexxc

IF EXISTS S:aiab-startup
    execute >NIL: s:aiab-startup >NIL: ;suggested by Brian King, and Cloanto
ENDIF

IF EXISTS S:user-startup
    execute >nil: s:user-startup >nil:
ENDIF

c:iprefs >nil:

c:conclip >nil:
c:loadwb.scalos >NIL:

IF EXISTS s:JIT-startup
    execute >nil: s:JIT-startup >nil:
ENDIF

endcli >nil:
