disklib: Add WEE bootloader detection code
authorGert Hulselmans <gerth@zytor.com>
Thu, 24 Jun 2010 20:08:21 +0000 (22:08 +0200)
committerErwan Velu <erwanaliasr1@gmail.com>
Thu, 24 Jun 2010 20:08:21 +0000 (22:08 +0200)
commita9c8bd1a98973165c0b217c0f52319828d398d3b
treef99f2c4150002c2a21e7b66fb3017748ec753f6d
parent28eb9c5fc6a144ca262255bf9e96515ba9971621
disklib: Add WEE bootloader detection code

WEE, is a bootloader based on grub4dos. It fits in the first 63 sectors of
the drive.

The first 4 bytes are:
$ hexdump -n 4 /media/Data/ubcd-new/wee-2010-06-20/wee63.mbr
0000000 5eeb 0090
0000004

Or in the format get_mbr_string wants it:
$ hexdump -C -n 4 wee63.mbr
00000000  eb 5e 90 00

Patch tested in qemu:
  qemu -boot d -cdrom hdt.iso -hda wee-2010-06-20/wee63.mbr
com32/gpllib/disk/mbrs.c