home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1996 January / MG_0196.ISO / spea / install / vega / os2 / cli25620.cmd < prev    next >
OS/2 REXX Batch file  |  1993-08-20  |  4KB  |  111 lines

  1. @rem argument %1 is the destination drive letter
  2. @rem argument %2 select the display resolution
  3.  
  4. @set o_path=%path%
  5. @set path=%1:\os2;%1:\os2\install;%path%
  6.  
  7. @if "%1"=="" goto usage
  8. @if "%2"=="" goto usage
  9. @echo - Cirrus Logic 256 colors display driver installation for OS/2 2.0...
  10. @echo -
  11. @echo - Please follow these steps before installing the Cirrus Logic drivers:
  12. @echo -
  13. @echo - 1. edit OS/2's config.sys file with the following settings
  14. @echo -
  15. @echo -    set video_devices=vio_SVGA
  16. @echo -    set vio_SVGA=device(bvhvga,BVHSVGA)
  17. @echo -    device=%1:\os2\mdos\VSVGA.SYS
  18. @echo -
  19. @echo - 2. bring up a DOS full screen session, insert Cirrus Logic's driver
  20. @echo -    diskette in drive A or B, type A:SVGA.EXE ON or B:SVGA.EXE ON to
  21. @echo -    create a svgadata.pmi file
  22. @echo -
  23. @echo - 3. shutdown the system to boot up from the OS/2 2.0 installation
  24. @echo -    diskette, then ESC out of diskette one to run this script file
  25. @echo -
  26. @echo - Type Control-C to abort the execution of the script file.
  27. @echo -
  28. @pause
  29. @rem ---------------------------------------------------------------------
  30. @echo - saving original files . . .
  31.  
  32. @if exist %1:\os2\screen01._cl           goto sav1
  33. @if exist %1:\os2\screen01.sys copy %1:\os2\screen01.sys %1:\os2\screen01._cl >nul
  34.  
  35. :sav1
  36. @if exist %1:\os2\screen02._cl           goto sav2
  37. @if exist %1:\os2\screen02.sys copy %1:\os2\screen02.sys %1:\os2\screen02._cl >nul
  38.  
  39. :sav2
  40. @if exist %1:\os2\svga._cl               goto sav3
  41. @if exist %1:\os2\svga.exe copy %1:\os2\svga.exe %1:\os2\svga._cl >nul
  42.  
  43. :sav3
  44. @if exist %1:\os2\dll\bvhsvga._cl        goto sav4
  45. @if exist %1:\os2\dll\bvhsvga.dll copy %1:\os2\dll\bvhsvga.dll %1:\os2\dll\bvhsvga._cl >nul
  46.  
  47. :sav4
  48. @if exist %1:\os2\dll\ibmdev32._cl       goto sav5
  49. @if exist %1:\os2\dll\ibmdev32.dll copy %1:\os2\dll\ibmdev32.dll %1:\os2\dll\ibmdev32._cl >nul
  50.  
  51. :sav5
  52. @if exist %1:\os2\dll\ibmvga32._cl       goto sav6
  53. @if exist %1:\os2\dll\ibmvga32.dll copy %1:\os2\dll\ibmvga32.dll %1:\os2\dll\ibmvga32._cl >nul
  54.  
  55. :sav6
  56. @if exist %1:\os2\mdos\vsvga._cl         goto sav7
  57. @if exist %1:\os2\mdos\vsvga.sys copy %1:\os2\mdos\vsvga.sys %1:\os2\mdos\vsvga._cl >nul
  58.  
  59. :sav7
  60. @rem ---------------------------------------------------------------------
  61. @echo - installing drivers . . .
  62.  
  63. @if %2==6 goto 600
  64. @if %2==7 goto 768
  65. @unpack sv480256.dl@ %1: >nul
  66. @goto inst
  67.  
  68. :600
  69. @unpack sv600256.dl@ %1: >nul
  70. @goto inst
  71.  
  72. :768
  73. @unpack sv768256.dl@ %1: >nul
  74.  
  75. :inst
  76. @if exist %1:\os2\screen01.sys unpack screen01.sy_ %1: >nul
  77. @if exist %1:\os2\screen02.sys unpack screen02.sy_ %1: >nul
  78. @copy   svga.exe     %1:\os2 >nul
  79. @unpack bvhsvga.dl_  %1: >nul
  80. @unpack ibmvga32.dl_ %1: >nul
  81. @unpack vsvga.sy_    %1: >nul
  82.  
  83. @echo -
  84. @echo - Press CRTL-ALT-DEL to reboot to OS/2 for the newly installed
  85. @echo - drivers to take effect . . .
  86. @echo -
  87. @goto home
  88.  
  89. :usage
  90. @echo *------------------------------------------------------------------*
  91. @echo * Cirrus Logic SVGA installation for OS/2 2.0...                   *
  92. @echo *==================================================================*
  93. @echo *                                                                  *
  94. @echo * Please specify the drive letter for the files to be copied to... *
  95. @echo * and the vertical display resolution of choice...                 *
  96. @echo *                                                                  *
  97. @echo *    640 x 480 x 256 ---- type 4 (default)                         *
  98. @echo *    800 x 600 x 256 ---- type 6                                   *
  99. @echo *   1024 x 768 x 256 ---- type 7                                   *
  100. @echo *                                                                  *
  101. @echo * example: cli25620 C 7                                            *
  102. @echo * meaning: install Cirrus Logic 1024x768x256 driver on drive C,    *
  103. @echo *          the OS/2 drive                                          *
  104. @echo *                                                                  *
  105. @echo *------------------------------------------------------------------*
  106.  
  107. :home
  108. @set path=%o_path%
  109. @set o_path=
  110.  
  111.