02.11.2002 - METAKERN.SYS - a boot menu that replaces the FreeDOS kernel
Updated 26.03.2003: Allow up to 4 boot sectors, 4 partitions, 3 drives.
Updated 01.04.2003: Autogenerate kernel names for several FreeDOS boots.
Updated 18.04.2003: Repaired and improved partition list display
Updated 04.05.2003: You can now compile with -DCLS and -DTIMEOUT
Updated 15.05.2003: Bugfix for timeout option.

Usage:
   1. change to drive / partition X: (must be bootable to make sense)
   2. prepare bootsect.* - I assume that you know how to do this. Feel
      free to ask me for more information (find my email address below).
   3. ren kernel.sys fdkernel.sys
   4. copy /b metakern.sys + bootsect.1 + bootsect.2 kernel.sys

(bootsect.1 and/or bootsect.2 must be valid boot sectors for X:
  or you will be unable to boot from X: at all after this!!)
(NEW 03/2003: you can do this with up to FOUR boot sectors)
(NEW 04/2003: you can even do this for SEVERAL identical FreeDOS boot
  sectors, which will be made to point to fdkernel.sys, fdkern1.sys,
  fdkern2.sys, etc., at boot time - rather than pointing to kernel.sys)
(NEW 05/2003: if you compile with -DCLS, the screen will be cleared
  on entering / leaving MetaKern. Use -DCLSin and -DCLSout to clear the
  screen in only one of the cases... Use -DTIMEOUT to activate auto-
  selection of an entry after a timeout...)

Choice:
   MetaKern will give you the choice to boot either of the OTHER
   partitions or one of the two boot sectors. A typical use would
   be to give it a FreeDOS and a MS DOS for the partition you install
   MetaKern on. MetaKern replaces the original kernel.sys and redirects
   the two boot sectors to fdkernel.sys IF they point to kernel.sys,
   so you want to: 1. give it a FreeDOS boot sector 2. have a complete
   (not Meta) kernel available as fdkernel.sys in the root directory!

Disclaimer:
   This is a beta version. Use it at your own risk. You may end up being
   unable to boot (then SYS again). License: GPL 2. Copyright 2002-2003
   Eric Auer, eric@coli.uni-sb.de - please send feedback or patches. For
   space reasons, please fetch the GPL text at www.gnu.org/licenses/ ...
   Basically it means: Freeware and open source but copyrighted... etc.!

Compile:
   nasm -o metakern.sys metakern.asm
   or if you want TIMEOUT and CLS features as described:
   nasm -DCLS -DTIMEOUT -o metakern.sys metakern.asm
