home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 33 VDrivers / 33-VDrivers.zip / k542x-d3.zip / CLI1620.CMD < prev    next >
OS/2 REXX Batch file  |  1993-08-20  |  4KB  |  115 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 16 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 -    add %1:\OS2\DLL\CLDSP; to the immediate right of LIBPATH=
  16. @echo -    set video_devices=vio_SVGA
  17. @echo -    set vio_SVGA=device(bvhvga,BVHSVGA)
  18. @echo -    device=%1:\os2\mdos\VSVGA.SYS
  19. @echo -
  20. @echo - 2. bring up a DOS full screen session, insert Cirrus Logic's driver
  21. @echo -    diskette in drive A or B, type A:SVGA.EXE ON or B:SVGA.EXE ON to
  22. @echo -    create a svgadata.pmi file
  23. @echo -
  24. @echo - 3. shutdown the system to boot up from the OS/2 2.0 installation
  25. @echo -    diskette, then ESC out of diskette one to run this script file
  26. @echo -
  27. @echo - Type Control-C to abort the execution of the script file.
  28. @echo -
  29. @pause
  30. @rem ---------------------------------------------------------------------
  31. @echo - saving original files . . .
  32.  
  33. @if exist %1:\os2\screen01._cl           goto sav1
  34. @if exist %1:\os2\screen01.sys copy %1:\os2\screen01.sys %1:\os2\screen01._cl >nul
  35.  
  36. :sav1
  37. @if exist %1:\os2\screen02._cl           goto sav2
  38. @if exist %1:\os2\screen02.sys copy %1:\os2\screen02.sys %1:\os2\screen02._cl >nul
  39.  
  40. :sav2
  41. @if exist %1:\os2\svga._cl               goto sav3
  42. @if exist %1:\os2\svga.exe copy %1:\os2\svga.exe %1:\os2\svga._cl >nul
  43.  
  44. :sav3
  45. @if exist %1:\os2\dll\bvhsvga._cl        goto sav4
  46. @if exist %1:\os2\dll\bvhsvga.dll copy %1:\os2\dll\bvhsvga.dll %1:\os2\dll\bvhsvga._cl >nul
  47.  
  48. :sav4
  49. @if exist %1:\os2\dll\cldsp\display._cl goto sav5
  50. @if exist %1:\os2\dll\cldsp\display.dll copy %1:\os2\dll\cldsp\display.dll %1:\os2\dll\cldsp\display._cl >nul
  51.  
  52. :sav5
  53. @if exist %1:\os2\dll\cldsp\monitor._cl       goto sav6
  54. @if exist %1:\os2\dll\cldsp\monitor.dll copy %1:\os2\dll\cldsp\monitor.dll %1:\os2\dll\cldsp\monitor._cl >nul
  55.  
  56. :sav6
  57. @if exist %1:\os2\mdos\vsvga._cl         goto sav7
  58. @if exist %1:\os2\mdos\vsvga.sys copy %1:\os2\mdos\vsvga.sys %1:\os2\mdos\vsvga._cl >nul
  59.  
  60. :sav7
  61. @rem ---------------------------------------------------------------------
  62. @echo - installing drivers . . .
  63. @if not exist %1:\os2\dll\cldsp\monitor.dll  md %1:\os2\dll\cldsp >nul
  64.  
  65. @if %2==6 goto 600
  66. @if %2==7 goto 768
  67. @unpack sv48016.dl@  %1: >nul
  68. @unpack display.dl_  %1: >nul
  69. @goto inst
  70.  
  71. :600
  72. @unpack sv60016.dl@  %1: >nul
  73. @unpack display.dl_  %1: >nul
  74. @goto inst
  75.  
  76. :768
  77. @unpack sv76816.dl@  %1: >nul
  78. @unpack display.dl_  %1: >nul
  79.  
  80. :inst
  81. @if exist %1:\os2\screen01.sys unpack screen01.sy_ %1: >nul
  82. @if exist %1:\os2\screen02.sys unpack screen02.sy_ %1: >nul
  83. @copy   svga.exe     %1:\os2 >nul
  84. @unpack bvhsvga.dl_  %1: >nul
  85. @unpack vsvga.sy_    %1: >nul
  86.  
  87. @echo -
  88. @echo - Press CRTL-ALT-DEL to reboot to OS/2 for the newly installed
  89. @echo - drivers to take effect . . .
  90. @echo -
  91. @goto home
  92.  
  93. :usage
  94. @echo *------------------------------------------------------------------*
  95. @echo * Cirrus Logic SVGA installation for OS/2 2.0...                   *
  96. @echo *==================================================================*
  97. @echo *                                                                  *
  98. @echo * Please specify the drive letter for the files to be copied to... *
  99. @echo * and the vertical display resolution of choice...                 *
  100. @echo *                                                                  *
  101. @echo *    640 x 480 x 16 ---- type 4 (default)                          *
  102. @echo *    800 x 600 x 16 ---- type 6                                    *
  103. @echo *   1024 x 768 x 16 ---- type 7                                    *
  104. @echo *                                                                  *
  105. @echo * example: cli1620 C 7                                             *
  106. @echo * meaning: install Cirrus Logic 1024x768x16 driver on drive C,     *
  107. @echo *          the OS/2 drive                                          *
  108. @echo *                                                                  *
  109. @echo *------------------------------------------------------------------*
  110.  
  111. :home
  112. @set path=%o_path%
  113. @set o_path=
  114.  
  115.