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

:EEPRO100
A:\PKT\E100BPKT 0x60
if errorlevel 0 goto ok
goto end
:NE
A:\PKT\NE2000 0x60 11 0x0300
if errorlevel 0 goto ok
goto end
:RTL8029
A:\PKT\PCIPKT 0x60
if errorlevel 0 goto ok
goto end
:RTL8139
A:\PKT\RTSPKT 0x60
if ERRORLEVEL 0 goto OK
goto end
:WD
A:\PKT\SMC_WD 0x60
if errorlevel 0 goto ok
goto end
:3C509
A:\PKT\3C5X9PD 0x60
if errorlevel 0 goto ok
goto end
:3C905B
A:\PKT\3C90XPD 0x60
if errorlevel 0 goto ok
goto end
:LITEON
A:\PKT\FEPD 0x60
if ERRORLEVEL 0 goto ok
goto end
:DEC
A:\PKT\ETHPCI 0x60
if ERRORLEVEL 0 goto ok
goto end

:ok
SET PKTDRV=P
:end