home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / System / EASys / EASys!_update_481_to_482 / StartSys / StartupStandard < prev    next >
Text File  |  2000-04-11  |  4KB  |  108 lines

  1. ; re-enable original Amiga-Startup
  2. ; disable ModAS temporary
  3. failat 30
  4.  
  5. if not exists s:startup-sequence.before_ModAS
  6.  echo "*n*n*e[1m Backup from originial startup (s:startup-sequence.before_ModAS) not available.*e[0m*n Exiting.*n"
  7.  quit
  8. endif
  9.  
  10. if not exists SYS:StartSys/ModAS_activated
  11.  echo "*n*n*e[1m Standard startup is already activated.*e[0m*n Exiting.*n"
  12.  quit
  13. endif
  14.  
  15. CLIExchange MultiNotify KILL
  16.  
  17. ;convert User-Startup
  18. if exists T:NewUserStartup
  19.  delete T:NewUserStartup QUIET
  20. endif
  21.  
  22. echo >T:tmpscript_a "failat 30"
  23.  
  24. if exists sys:startsys/a_Init/rexx
  25.  list sys:startsys/a_Init/rexx >>T:tmpscript_a LFORMAT "execute T:tmpscript_b *"%s%s*" *"%n*""
  26. endif
  27.  
  28. list sys:startsys/c_prepare/~(_#?) >>T:tmpscript_a LFORMAT "execute T:tmpscript_b *"%s%s*" *"%n*""
  29. sort T:tmpscript_a to T:conv_users.script
  30.  
  31. echo >T:tmpscript_b ".key file,name*nfailat 30"
  32. echo >>T:tmpscript_b "echo >>T:NewUserStartup *";BEGIN <name>*"*ntype >>T:NewUserStartup *"<file>*"*necho >>T:NewUserStartup *";END <name>**n*"*n"
  33.  
  34. execute T:conv_users.script
  35. delete T:conv_users.script T:tmpscript_a T:tmpscript_b QUIET
  36.  
  37. ;Replace Startup Files now
  38. protect s:user-startup +wd
  39. if not exists s:user-startup.modas
  40.  copy s:user-startup s:user-startup.modas CLONE QUIET
  41. endif
  42. copy T:NewUserStartup S:User-Startup CLONE QUIET
  43.  
  44. if not exists s:startup-sequence.modas
  45.  copy s:startup-sequence s:startup-sequence.modas CLONE QUIET
  46. endif
  47. protect s:startup-sequence.before_ModAS +wd
  48. copy s:startup-sequence.before_ModAS s:startup-sequence CLONE QUIET
  49. protect s:startup-sequence.before_ModAS -wd
  50.  
  51. ;enhance Startup-Sequence
  52. protect s:startup-sequence +wd
  53. set module S:Startup-EASys!_InitMenu
  54. rx EASys!_rexx:remoteed.rexx movetext s:Startup-Sequence "run >NIL: execute $module" "1LiNe" T:Trash
  55. echo >$module ";initialize EASys! Post Startup-Sequence modules. Must be started some seconds after Startup-Sequence."
  56. echo >>$module "wait 3"
  57. if exists SYS:StartSys/e_WB/2_MenuShortcuts
  58.  echo >$module ";initialize EASys! MenuShortcuts: Must be started some seconds after Startup-Sequence."
  59.  type >>$module SYS:StartSys/e_WB/2_MenuShortcuts
  60. endif
  61. if exists SYS:StartSys/e_WB/7_PubScreens
  62.  echo >>$module ";activate Public Screens activation for EASys!"
  63.  type >>$module SYS:StartSys/e_WB/7_PubScreens
  64. endif
  65. if exists SYS:StartSys/e_WB/2_ToolManager_EASys!
  66.  echo >>$module ";activate ToolManager Toolbar for EASys!"
  67.  type >>$module SYS:StartSys/e_WB/2_ToolManager_EASys!
  68.  echo >>$module setenv SHELLSTARTUP S:Shell-Startup
  69. endif
  70. rx EASys!_Rexx:RemoteEd.rexx movetext s:startup-sequence "EndCLI" "§§##" T:Trash
  71. echo >>S:Startup-Sequence "run >NIL: execute $module*n"
  72. echo >>S:Startup-Sequence "EndCLI >NIL:"
  73.  
  74. ;restart MultiNotify for Standard startup
  75. copy ENVARC:MultiNotify.prefs SYS:StartSys/StartupModAS.MultiNotify CLONE QUIET
  76. copy SYS:StartSys/StartupStandard.MultiNotify ENVARC:MultiNotify.prefs CLONE QUIET
  77. copy SYS:StartSys/StartupStandard.MultiNotify ENV:MultiNotify.prefs CLONE QUIET
  78. run >NIL: MultiNotify
  79.  
  80. ;Cleanup
  81. delete SYS:StartSys/ModAS_activated FORCE QUIET
  82. delete T:NewUserStartup QUIET
  83.  
  84. if $LANGUAGE eq "deutsch"
  85.  echo "*n*n*e[1m Standard Startup wurde reaktiviert.*e[0m"
  86.  echo " Du kannst jederzeit zum ModAS startup zurückkehren durch"
  87.  echo " Eingabe von 'SYS:StartSys/StartupModAS'."
  88.  echo "*n Dies ist nur eine schnelle Umschaltung zum Standard Startup."
  89.  echo " Die User-Startup wurde auf aktuellem Stand regeneriert. Andere"
  90.  echo " Änderungen am Startup-Prozess, die seit der ModAS Aktivierung"
  91.  echo " durchgeführt wurden, werden hiervon nicht berücksichtigt."
  92.  echo " Um im Zweifelsfalle ganz auf den standard Startup zurückzugehen,"
  93.  echo " benutze bitte 'SYS:StartSys/ModAS2Standard' in einer Shell."
  94.  echo " Es gibt dann aber keinen eleganteren Weg zurück zu ModAS als"
  95.  echo " seine Neuinstallation.*n"
  96. else
  97.  echo "*n*n*e[1m Standard Startup reactivated.*e[0m"
  98.  echo " You may switch back to full ModAS startup by entering"
  99.  echo " 'SYS:StartSys/StartupModas'."
  100.  echo "*n This is a quick switchover to standard startup only!"
  101.  echo " The User-Startup has been regenerated from the current setup. Other"
  102.  echo " Changes in startup since ModAS activation are not taken over."
  103.  echo " If you did not have any changes since then, this was a complete switchover,"
  104.  echo " although. In doubts, to switch fully back to standard startup, enter"
  105.  echo " 'SYS:StartSys/Modas2Standard' in a shell. Keep in mind that in this case,"
  106.  echo " there is no faster way back to ModAS than reinstalling it.*n"
  107. endif
  108.