pktdrv.bat 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. @echo off
  2. if (%PKTDRV%)==(P) goto end
  3. A:\PKT\ROMID
  4. if (%ROMID%)==() goto select
  5. if (%ROMID%)==(NE) goto NE
  6. if (%ROMID%)==(WD) goto WD
  7. if (%ROMID%)==(3C509) goto 3C509
  8. if (%ROMID%)==(3C905B) goto 3C905B
  9. if (%ROMID%)==(EEPRO100) goto EEPRO100
  10. if (%PCIID%)==(10EC:8029) goto RTL8029
  11. if (%PCIID%)==(10EC:8139) goto RTL8139
  12. if (%PCIID%)==(11AD:0002) goto LITEON
  13. if (%PCIID%)==(1011:0009) goto DEC
  14. echo No Driver installed!
  15. goto end
  16. :select
  17. cls
  18. echo *** Select your network card.... ***
  19. echo.
  20. echo 1 -- Intel EtherExpress 100B PCI Adapter
  21. echo 2 -- 3Com 3C90X Etherlink III PCI Adapter
  22. echo 3 -- 3Com 3C5X9 Etherlink III ISA Adapter
  23. echo 4 -- NE2000 Novell ISA Adapter
  24. echo 5 -- Realtek 8029 PCI Adapter
  25. echo 6 -- Realtek 8139 PCI Adapter
  26. echo 7 -- SMC EliteUltra 8216 ISA Adapter
  27. echo 8 -- DEC21x4 Busmaster PCI Adapter
  28. echo 9 -- LiteOn PNIC Busmaster PCI Adapter
  29. echo.
  30. echo *** **************************** ***
  31. echo.
  32. choice /c123456789 /n Select:
  33. if errorlevel 9 goto LITEON
  34. if errorlevel 8 goto DEC
  35. if errorlevel 7 goto WD
  36. if errorlevel 6 goto RTL8139
  37. if errorlevel 5 goto RTL8029
  38. if errorlevel 4 goto NE
  39. if errorlevel 3 goto 3C509
  40. if errorlevel 2 goto 3C905B
  41. if errorlevel 1 goto EEPRO100
  42. goto end
  43. :EEPRO100
  44. A:\PKT\E100BPKT 0x60
  45. if errorlevel 0 goto ok
  46. goto end
  47. :NE
  48. A:\PKT\NE2000 0x60 11 0x0300
  49. if errorlevel 0 goto ok
  50. goto end
  51. :RTL8029
  52. A:\PKT\PCIPKT 0x60
  53. if errorlevel 0 goto ok
  54. goto end
  55. :RTL8139
  56. A:\PKT\RTSPKT 0x60
  57. if ERRORLEVEL 0 goto OK
  58. goto end
  59. :WD
  60. A:\PKT\SMC_WD 0x60
  61. if errorlevel 0 goto ok
  62. goto end
  63. :3C509
  64. A:\PKT\3C5X9PD 0x60
  65. if errorlevel 0 goto ok
  66. goto end
  67. :3C905B
  68. A:\PKT\3C90XPD 0x60
  69. if errorlevel 0 goto ok
  70. goto end
  71. :LITEON
  72. A:\PKT\FEPD 0x60
  73. if ERRORLEVEL 0 goto ok
  74. goto end
  75. :DEC
  76. A:\PKT\ETHPCI 0x60
  77. if ERRORLEVEL 0 goto ok
  78. goto end
  79. :ok
  80. SET PKTDRV=P
  81. :end