WAIT 1
IF $FIRSTTIMEBOOTWB EQ "TRUE"
   ECHO "DELETE >NIL: SYS:WBStartup/OneTimeRunWB.info ALL FORCE *nDELETE >NIL: SYS:WBStartup/OneTimeRunWB ALL FORCE" to S:OneTimeRun/DeleteOneTimeRunWB 
   ECHO "Amiga Imager - Performing Final Setup"
   c:ce >NIL: S:OneTimeRunWB 
   IF WARN 
      ECHO "Running One Time Scripts" 
      ECHO >T:RunTimeScript "FAILAT 21" 
      IF $System EQ "UAE" 
         LIST >>T:RunTimeScriptWB S:OneTimeRunWB PAT=~(#?.info|#?_pistorm) LFORMAT="ECHO *"Running Script: %n*"*nEcho *"*"*nExecute *"%p%n*"*nDelete *"%p%n*"*n" ALL FILES
      ELSE
         LIST >>T:RunTimeScriptWB S:OneTimeRunWB PAT=~(#?.info|) LFORMAT="ECHO *"Running Script: %n*"*nEcho *"*"*nExecute *"%p%n*"*nDelete *"%p%n*"*n" ALL FILES
      ENDIF
      EXECUTE T:RunTimeScriptWB
      DELETE >NIL: T:RunTimeScriptWB 
   ENDIF 
   COPY >NIL: "SYS:WBStartup/Disabled/#?" TO "SYS:WBStartup/" ALL FORCE CLONE
   DELETE >NIL: "SYS:WBStartup/Disabled" ALL FORCE
   ECHO ""
   ECHO "Rebooting the Amiga in 3 seconds!"
   Wait 3
   Sys:c/diskchange SDH0:
   IF $System EQ "UAE"
      Sys:c/reboot
   ELSE
      c:EMU68INFO HARDRESET
   ENDIF
   ENDCLI
ENDIF
