aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorGert Hulselmans <gerth@zytor.com>2010-06-24 22:08:21 +0200
committerErwan Velu <erwanaliasr1@gmail.com>2010-06-24 22:08:21 +0200
commita9c8bd1a98973165c0b217c0f52319828d398d3b (patch)
treef99f2c4150002c2a21e7b66fb3017748ec753f6d /com32/gpllib
parent28eb9c5fc6a144ca262255bf9e96515ba9971621 (diff)
downloadsyslinux-a9c8bd1a98973165c0b217c0f52319828d398d3b.tar.gz
syslinux-a9c8bd1a98973165c0b217c0f52319828d398d3b.tar.xz
syslinux-a9c8bd1a98973165c0b217c0f52319828d398d3b.zip
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
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/disk/mbrs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/gpllib/disk/mbrs.c b/com32/gpllib/disk/mbrs.c
index f2942fcb..41bb20c6 100644
--- a/com32/gpllib/disk/mbrs.c
+++ b/com32/gpllib/disk/mbrs.c
@@ -71,6 +71,8 @@ void get_mbr_string(const uint32_t label, char *buffer, const int buffer_size)
strlcpy(buffer, "fbinst", buffer_size - 1);
else if (((label >> 8) & 0xff) == 0x80)
strlcpy(buffer, "Grub4Dos", buffer_size - 1);
+ else if (((label >> 8) & 0xff) == 0x90)
+ strlcpy(buffer, "WEE", buffer_size - 1);
else
strlcpy(buffer, "Unknown mbr", buffer_size - 1);
break;