English / Deutsch | Print version
Twitter
twitter

Prev
DOS and the USB driver
Table of Contents Next
Hidden partition / Cleared partition

Detect the USB driver


1. Detect the USB driver with Syslinux
2. Detect the USB driver under DOS

1. Detect the USB driver with Syslinux


Icecube wrote the module ifplop.c32 for syslinux to detect the plop usb driver

Example syslinux.cfg:

default plopcheck

# Check for the presence of plop (run by default)
#   When plop INT13 hook is found, run the first label
#   When plop INT13 hook isn't found, run the second label

label plopcheck
    com32 ifplop.c32
    append plop_detected -- plop_not_detected
	
# When plop INT13 hook was found, boot the menu system.
# plop can have added USB2.0 speed, so the entries we want to boot
# will be read from disk much faster (supposing that we have a BIOS
# that only supports USB1.1 speed).

label plop_detected
    com32 menu.c32
    append syslinux.cfg
		
# plop INT13 hook wasn't found, so we boot plop

label plop_not_detected
    linux plpbt.bin

ifplop.c32 is part of syslinux since version 4.01.
ifplop.c32 module page: http://syslinux.zytor.com/wiki/index.php/Ifplop.c32

You find some driver detection info's here.


2. Detect the USB driver under DOS


With the program plpchk-0.1.zip you are able to detect the plop usb driver. You can use it in the config.sys, in a batch program or from the command line. The program is able to create a file when the driver is installed, or delete a file when the driver was not detected. According to the existence of the file you can do some actions. For batch files you can use the return value of the error level. The program makes no screen output when you use the /h parameter.

plpchk [/?] [/h] [file]

  /?      help
  /h      hide text output
  file    create this file when the driver was detected or remove it when the
          driver was not detected
		
config.sys example: DEVICE=c:\tools\plpchk.exe c:\tmp\plpusb
		
For batch processing: ERRORLEVEL 0 = no driver detected
                                 1 = driver detected

You find some driver detection info's here.



Prev
DOS and the USB driver
Table of Contents Next
Hidden partition / Cleared partition

© 2024 by Elmar Hanlhofer