home *** CD-ROM | disk | FTP | other *** search
-
-
-
- IF_INTEL.COM, ELSE_INT.COM and END_INT.COM utility programs.
-
-
-
- In PC environments where network adapters from several different vendors
- are used in DOS workstations, it is possible to use three special utility
- programs, IF_INTEL.COM, ELSE_INT.COM, and END_INT.COM, to create common
- CONFIG.SYS and/or AUTOEXEC.BAT files ensuring that the network drivers
- loaded are appropriate for the adapter in a given PC. That is, the same
- CONFIG.SYS and AUTOEXEC.BAT files can be used on machines with different
- network adapter configurations.
-
- The utility programs check for the presence of a TokenExpress(TM) adapter
- in a machine. The three programs work together to form conditional
- statements of the form "IF a TokenExpress adapter is found, do X, ELSE
- do Y."
-
- Depending on whether you want this type of context-dependent configuration
- in your CONFIG.SYS or AUTOEXEC.BAT, you should read the corresponding
- subsection below. Note that you can use both sections if this matches
- your needs.
-
- NOTE: In the examples below, comments have been added and should
- not be entered as part of a config.sys file. The comments are prefixed
- with "--" (quotes not included).
-
- IF_INTEL.COM will not be able to detect the TokenExpress ISA 16/S Plug and
- Play adapter if Plug and Play is enabled. Plug and Play must be disabled
- on the TokenExpress adapter for IF_INTEL to detect the TokenExpress
- adapter reliably. Plug and Play support can be disabled on the TokenExpress
- with TokenSet.
-
- CONFIG.SYS
- ----------
-
- To add a context-dependent configuration to your CONFIG.SYS file, use the
- "device=" statement to load the IF_INTEL.COM, ELSE_INT.COM, and
- END_INT.COM files as device drivers. These files do not take up any
- memory once the configuration process is complete.
-
- The use of these files is illustrated through the following example, where
- either a TokenExpress or IBM driver is installed, depending on which
- adapter card is present in the machine:
-
- device=\if_intel.com -- Is there a TokenExpress adapter in the PC?
- device=\olitok16.dos -- Yes, load the TokenExpress NDIS driver.
- device=\else_int.com -- If not, do the following:
- device=\ibmtok.dos -- Load IBM's NDIS driver instead.
- device=\end_int.com -- End of context-dependent section.
-
-
- Using the ELSE_INT.COM program is optional. Thus, the following
- example simply checks if a network adapter is present, and installs the
- network device drivers only if the adapter is there:
-
- device=\if_intel.com -- Is there a TokenExpress adapter in the PC?
- device=\protman.dos /I:\ -- Yes, load the MS Protocol Manager
- device=\olitok16.dos -- and the TokenExpress NDIS driver.
- device=\end_int.com -- End of context-dependent section.
-
-
-
-
- AUTOEXEC.BAT
- ------------
- To add a context-dependent configuration to your AUTOEXEC.BAT file, use the
- IF_INTEL.COM program in conjunction with the built-in DOS "IF ERRORLEVEL"
- conditional. The IF_INTEL.COM program sets the ERRORLEVEL variable to
- one if NO TokenExpress adapter is present and to greater than or equal to
- 10 if a TokenExpress adapter is found. If a TokenExpress adapter is found,
- the actual value of ERRORLEVEL is dependent on the adapter type. In the
- table below you will find a list of these actual values:
-
-
-
-
- ----------------------------------------------------------
- | |
- | TokenExpress adapter Type Value of ERRORLEVEL |
- | |
- ==========================================================
- | |
- | BAD USAGE (accepts no arguments) 0 |
- | |
- | NONE - 1 |
- | |
- | 16/4 Mbps adapters |
- | |
- | MCLA8330 MCA 12 |
- | EILA8235 EISA 16/4 13 |
- | PLCA8130A ISA 16/s (non Pnp) 15 |
- | PCLA8130A ISA 16/S (PnP) 16 |
- | EILA8245 EISA 32 30 |
- | PLCA8155 TokenExpress PRO 50 |
- | |
- | |
- ----------------------------------------------------------
-
-
- If you need to distinguish among different TokenExpress adapters use the
- different values of the ERRORLEVEL variable in conjunction with the
- built-in DOS "IF ERRORLEVEL" conditional. Please note that the order
- of the "IF ERRORLEVEL" statements is significant as the statement
- actually tests if ERRORLEVEL is greater than or equal to the specified
- value.
-
- It is thus important to arrange the test for the various ERRORLEVEL
- values in descending order.
-
- Please consult the following examples for guidance.
-
-
- Load either IBM or TokenExpress Novell ODI driver
- ------------------------------------------------------------------------
-
- lsl.com -- Novell's Link Support program.
- IF_INTEL.COM -- Check for TokenExpress adapter
- presence
- if ERRORLEVEL 10 goto is_TE
- if ERRORLEVEL 1 goto is_other
- echo Bad usage. -- a help message has been written
- goto common
-
- :is_TE -- Found a TokenExpress adapter!
- rem Found TokenExpress adapter as expected.
- OCTOK16.COM -- Load TokenExpress ODI driver
- goto common
-
- :is_other -- No TokenExpress adapter found!
- rem NO TokenExpress adapter installed.
- TOKEN.COM -- Load IBM ODI driver.
-
- :common
- rem only the MAC driver is hardware dependent
- ipxodi.com -- Load the IPX protocol.
- netx.exe -- Load the NetWare DOS shell.
-
-
-
- Loading the optimal DOS ODI driver for a TokenExpress 16/4 adapter:
- ------------------------------------------------------------------------
-
- lsl.com -- Novell's Link Support program.
- IF_INTEL.COM
- if ERRORLEVEL 10 goto intel
- if ERRORLEVEL 1 goto common
- echo BAD USAGE. -- a help message has been written
- goto common
-
- :intel
- if ERRORLEVEL 41 goto common -- no ODI driver for 4Mbps adapters
- if ERRORLEVEL 30 goto oc3135
- \TokenExpress\OCTOK16.COM -- Load default ODI driver
- goto common
-
- :oc3135 -- Load default ODI driver
- \TokenExpress\OCTOK16.COM
-
- :common
- ipxodi.com -- Load the IPX protocol.
- netx.exe -- Load the NetWare DOS shell.
-
-
- Distinguishing all TokenExpress adapters:
- ------------------------------------------------------------------------
-
- @echo off
- if_intel.com
- if ERRORLEVEL 50 goto tx_tpro
- if ERRORLEVEL 30 goto tx_3135 -- remember to test for greatest
- if ERRORLEVEL 16 goto tx_3118
- if ERRORLEVEL 15 goto tx_3117 -- value first as explained above.
- if ERRORLEVEL 13 goto tx_3133
- if ERRORLEVEL 12 goto tx_3129
- if ERRORLEVEL 1 goto no_TE
- echo Bad usage. -- a help message has been written
- goto common
-
- :no_TE
- echo NO TokenExpress adapter installed.
- goto common
-
- :tx_3129
- echo Found TokenExpress MCLA8330 MCA adapter.
- goto common
-
- :tx_3133
- echo Found TokenExpress EILA8235 EISA adapter.
- goto common
-
- :tx_3118
- echo Found TokenExpress PCLA8130A ISA PnP adapter.
- goto common
-
- :tx_3117
- echo Found TokenExpress PCLA8130A ISA adapter.
- goto common
-
- :tx_3135
- echo Found TokenExpress EILA8245 Server EISA adapter.
- goto common
-
- :tx_tpro
- echo Found TokenExpress MCLA8330 MCA adapter.
- goto common
- :common
-
-
-