=("TITLE")
Call Rxfuncadd 'SysLoadFuncs','RexxUtil','SysLoadFuncs';
Call SysLoadFuncs;
MyTitle="AHCI Driver for OS/2";
BootDrive = SysBootDrive();
ConfigSys = BootDrive||'\config.sys';
OsDir=VALUE('OSDIR',,'OS2ENVIRONMENT');
if (OsDir='') then OsDir='?:\OS2';
OsDocTarget='TARGET="'||OsDir||'\DOC\AHCI" LONGFILENAMES SELECT';
if (TRANSLATE(RIGHT(OsDir,3))='OS2') then do
OsAppTarget='TARGET="'||OsDir||'\APPS" LONGFILENAMES SELECT';
end
else do
OsAppTarget='TARGET="'||OsDir||'\BIN" LONGFILENAMES SELECT';
end
/* find AHCI line, if any */
SearchString='BASEDEV=OS2AHCI.ADD';
If (SysFileSearch(SearchString,ConfigSys,'test.') \= 0) then test.0 = 0;
ahci_ln = 0;
do i = 1 to test.0
If (TRANSLATE(WORD(test.i, 1)) \= SearchString) then iterate;
ahci_ln = i;
leave;
end
/* find Dani line, if any */
SearchString='BASEDEV=DANIS506.ADD';
If (SysFileSearch(SearchString,ConfigSys,'test.') \= 0) then test.0 = 0;
dani_ln = 0;
do i = 1 to test.0
If (TRANSLATE(WORD(test.i, 1)) \= SearchString) then iterate;
dani_ln = i;
leave;
end
ConfigSysModify = '';
if (ahci_ln=0) then do
if (dani_ln=0) then do
ConfigSysModify='CONFIGSYS="BASEDEV=OS2AHCI.ADD | UNIQUE(OS2AHCI.ADD) ADDTOP"';
end
else do
ConfigSysModify='CONFIGSYS="BASEDEV=OS2AHCI.ADD | UNIQUE(OS2AHCI.ADD) ADDBEFORE(DANIS506.ADD)"';
end
end
rc = WirexxPutEnv('MyTitle',MyTitle);
rc = WirexxPutEnv('ConfigSysModify',ConfigSysModify);
rc = WirexxPutEnv('OsAppTarget',OsAppTarget);
rc = WirexxPutEnv('OsDocTarget',OsDocTarget);
Return MyTitle;
Parse Arg EnvVar .
Return WirexxGetEnv(EnvVar);
The AHCI Driver
ReadMe and License
Welcome to the =("GetEnv MyTitle")
ReadMe.txt
Select the packages you want to install.
Press "Install" to begin installing this archive.
I~nstall