home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
System
/
EASys
/
InstallPack_47
/
EASys!_inst
/
EASys!_iGuide
/
Upd_StartSys.script
< prev
Wrap
AmigaDOS Script File
|
2000-03-14
|
8KB
|
171 lines
.key userver
failat 30
stack 20000
set rEd rx Install_C:RemoteEd.rexx
set RenStr Install_C:ReplaceStrings
set srcSys iGuide_root:ModAS_System/StartSys
set StaSys SYS:StartSys
if exists $StaSys
;update all
copy "$srcSys/#?" $StaSys CLONE QUIET
copy iGuide:update/StartSys $StaSys CLONE ALL QUIET
;login
if exists $StaSys/b_GUI/3_Login
delete >NIL: $StaSys/b_GUI/#?3_#? QUIET
copy $srcSys/b_GUI/_b-disabled/3_Login $StaSys/b_GUI/3_Login CLONE QUIET
copy $srcSys/b_GUI/3_No_Login $StaSys/b_GUI/_b-disabled CLONE QUIET
else
delete >NIL: $StaSys/b_GUI/#?3_#? QUIET
copy $srcSys/b_GUI/3_No_Login $StaSys/b_GUI/3_No_Login CLONE QUIET
endif
;New Profiling
;move ancient SYS:Prefs/Profiles to $StaSys/Profiles
if exists SYS:Prefs/Profiles
copy SYS:Prefs/Profiles $StaSys/Profiles CLONE ALL QUIET
assign Profile: REMOVE
delete >NIL: SYS:Prefs/Profiles FORCE ALL QUIET
endif
assign Profile: $StaSys/Profiles/$LOGIN
;user icons providing
copy sys:disk.info $StaSys/profiles/root/Icons/SYS CLONE QUIET
copy RAM:disk.info $StaSys/profiles/root/Icons/RAM CLONE QUIET
copy sys:disk.info $StaSys/profiles/guest/Icons/SYS CLONE QUIET
copy RAM:disk.info $StaSys/profiles/guest/Icons/RAM CLONE QUIET
copy ENV:sys $StaSys/profiles/root/ENV/sys CLONE ALL QUIET
copy ENV:sys $StaSys/profiles/$LOGIN/ENV/sys CLONE ALL QUIET
copy $StaSys/profiles/root/ENV $StaSys/profiles/guest/ENV CLONE ALL QUIET
copy $StaSys/profiles/root/ENV $StaSys/profiles/$LOGIN/ENV CLONE ALL QUIET
;dirs for profiling flags
makedir $StaSys/profiles/root/profiled
makedir $StaSys/profiles/guest/profiled
makedir $StaSys/profiles/$LOGIN/profiled
;a_Init phase
delete >NIL: $StaSys/a_Init/2_Devices FORCE QUIET ;has been copied there by fault in V4.x
if not exists $StaSys/a_Init/0_Patches
copy $srcSys/a_Init/0_Patches $StaSys/a_Init CLONE QUIET
endif
$rEd movetext s:startup-sequence "PatchControl" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "PatchControl" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "ramlibpatch" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "iprefspatch" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "iprefspatch" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "PatchOpenWB" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "PatchOpenWB" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "betteropenlibs" "1LiNe" $StaSys/a_Init/0_Patches
$rEd movetext s:startup-sequence "c:MCP" "1LiNe" $StaSys/a_Init/8_MCP
$rEd movetext s:startup-sequence "/MCP" "1LiNe" $StaSys/a_Init/8_MCP
$rEd movetext s:startup-sequence "MCP" "1LiNe" $StaSys/a_Init/8_MCP
$rEd movetext s:startup-sequence "IF EXISTS DEVS:MONITORS/VGAONLY" "ENDIF" $StaSys/a_Init/_5_MonitorSetupVGA
$rEd movetext s:startup-sequence "IF EXISTS DEVS:MONITORS/MULTISYNC" "ENDIF" $StaSys/a_Init/_5_MonitorSetupMSync
$rEd movetext s:startup-sequence "IF EXISTS DEVS:MONITORS/MULTISCAN" "ENDIF" $StaSys/a_Init/_5_MonitorSetupMScan
$rEd movetext s:startup-sequence "IF EXISTS DEVS:MONITORS" "ENDIF" $StaSys/a_Init/_5_MonitorSetup.bak
$rEd movetext s:startup-sequence "DEVS:MONITORS" "*sAmE" $StaSys/a_Init/_5_MonitorSetup.bak
;remove redundant extractions of previous setups (thanks to B.Breuer!)
$rEd movetext $StaSys/a_Init/3_assigns.user "DEVS:PRINTERS" "1LiNe" T:Trash
$rEd movetext $StaSys/a_Init/3_assigns.user "DEVS:Keymaps" "1LiNe" T:Trash
$rEd movetext $StaSys/a_Init/3_assigns.user "SYS:Locale/HELP" "1LiNe" T:Trash
$rEd movetext $StaSys/a_Init/3_assigns.user "Locale:HELP" "1LiNe" T:Trash
$rEd movetext $StaSys/a_Init/3_assigns.user "SYS:Locale" "1LiNe" T:Trash
$rEd movetext $StaSys/a_Init/3_assigns.user "SYS:Classes" "1LiNe" T:Trash
copy "$srcSys/btn-images" $StaSys/btn-Images CLONE ALL QUIET
;b_GUI phase
copy "$srcSys/b_GUI/6_MCP" $StaSys/b_GUI CLONE QUIET
if exists s:Shell-Startup.bakM
echo >>$StaSys/b_GUI/7_ShellConfig "*n;BEGIN Shell-Startup.bakM added. Please remove if obsolete!"
type >>$StaSys/b_GUI/7_ShellConfig s:Shell-Startup.bakM
echo >>$StaSys/b_GUI/7_ShellConfig "*n;END Shell-Startup.bakM added. Please remove if obsolete!*n"
delete >NIL: s:Shell-Startup.bakM FORCE QUIET
endif
;c_Prepare phase
delete >NIL: $StaSys/c_Prepare/#?.profile FORCE QUIET
delete >NIL: $StaSys/c_Prepare/#?KCON#? FORCE QUIET
delete >NIL: $StaSys/c_Prepare/XPK#? FORCE QUIET
delete >NIL: $StaSys/c_Prepare/ToolManager FORCE QUIET
delete >NIL: $StaSys/c_Prepare/#?ToolManager_#? FORCE QUIET
;d_System phase
copy "$srcSys/d_System/2_Devices" $StaSys/d_System CLONE QUIET
copy s:Startup-Sequence.before_ModAS T:sseq.tmp
$rEd movetext T:sseq.tmp "BindDrivers" "DEVS:DOSDRIVERS" $StaSys/d_System/2_Devices
$rEd movetext T:sseq.tmp "DEVS:DOSDRIVERS" "*sAmE" $StaSys/d_System/2_Devices
;in any way remove that here, too:
$rEd movetext s:startup-sequence "BindDrivers" "DEVS:DOSDRIVERS" T:Trash
$rEd movetext s:startup-sequence "DEVS:DOSDRIVERS" "*sAmE" T:Trash
;and update this
copy "$srcSys/d_System/3_User#?" $StaSys/d_System CLONE QUIET
delete >NIL: $StaSys/d_System/0_Modas_deamon FORCE QUIET ;moved to e_WB/6_ModAS_deamon
delete >NIL: $StaSys/d_system/#?MenuShortCuts FORCE QUIET ;moved to e_WB/2_MenuShortCuts
;e_WB phase
copy "$srcSys/e_WB/1_Workbench" $StaSys/e_WB CLONE QUIET
delete >NIL: $StaSys/e_WB/3_Workbench FORCE QUIET
$rEd movetext s:startup-sequence "LOADWB" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "LOADWB" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "ScalosWB" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "ScalosWB" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "DOpus" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "DOpus" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "DirectoryOpus" "1LiNe" $StaSys/e_WB/1_Workbench
$rEd movetext s:startup-sequence "DirectoryOpus" "1LiNe" $StaSys/e_WB/1_Workbench
delete >NIL: $StaSys/e_WB/#?_ModAS_deamon FORCE QUIET
delete >NIL: $StaSys/e_WB/2_User_Icons FORCE QUIET
delete >NIL: $StaSys/e_WB/2_User_WBstartup FORCE QUIET
copy "$srcSys/e_WB/4_StartShell" $StaSys/e_WB CLONE QUIET
copy "$srcSys/e_WB/8_CleanUp" $StaSys/e_WB CLONE QUIET
$rEd movetext s:User-Startup ";BEGIN _ModAS_deamon" ";END _ModAS_deamon" T:Trash
;remove old stuff
delete >NIL: SYS:WBstartup/MultiNotify#? FORCE QUIET
delete >NIL: $StaSys/MultiNotify#? FORCE QUIET
delete >NIL: $StaSys/bin/MultiNotify#? FORCE QUIET
;ShutDown
delete >NIL: sys:ShutDown/QuitSys.ilbm FORCE QUIET
delete >NIL: SYS:ShutDown/System/#? QUIET
delete >NIL: SYS:ShutDown/SaveProfile#? QUIET
copy iGuide_root:ModAS_System/ShutDown SYS:ShutDown CLONE ALL QUIET
;replace vars
if not <userver> ge 4.6.3
rename ENV:Flags/StartVerbose ENV:Flags/StartVerb
rx Install_C:ReplaceFileContents.rexx "if exists ENV:Flags/StartVerbose" "IF ${Flags/StartVerbose} EQ 1" $StaSys/ AUTO
$renstr S:Startup-Sequence "if exists ENV:Flags/StartVerbose" "IF ${Flags/StartVerbose} EQ 1" I
rename ENV:Flags/StartVerb ENV:Flags/StartVerbose
rx Install_C:ReplaceFileContents.rexx "Profile:Flags" "Profile:ENV/Flags" $StaSys/ AUTO
endif
;new activated-Flag
delete >NIL: $StaSys/ModAS_activated FORCE QUIET
delete >NIL: ENVARC:ModAS_activated FORCE QUIET
delete >NIL: ENV:ModAS_activated FORCE QUIET
date >$StaSys/ModAS_activated
protect $StaSys/ModAS_activated -wd
delete >NIL: T:Trash FORCE QUIET
;new startup-sequence module
$red replacetext iGuide:init/ModAS.sseq ";BEGIN ModAS" ";END ModAS" s:startup-sequence
endif