diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2009-12-08 21:38:52 +0100 |
---|---|---|
committer | Sebastian Herbszt <herbszt@gmx.de> | 2009-12-08 21:38:52 +0100 |
commit | b4753621f708d1c1817109b12d1a495db7edbe07 (patch) | |
tree | 32f00cfed0837e18be8a59dd6d94449059575909 /com32/gfxboot/gfxboot.c | |
parent | 9315750647b4ff1f323b4cfc20ca1a13ef74b634 (diff) | |
download | syslinux-b4753621f708d1c1817109b12d1a495db7edbe07.tar.gz |
gfxboot: fix loading of LABELs with non KERNEL or LINUX commands
Call syslinux_run_command() if menu_ptr->kernel or menu_ptr->linux are not set.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'com32/gfxboot/gfxboot.c')
-rw-r--r-- | com32/gfxboot/gfxboot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index c415bad4..3937e305 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -732,7 +732,12 @@ void boot_entry(menu_t *menu_ptr, char *arg) file = menu_ptr->kernel; if(!file) file = menu_ptr->linux; - if(!file) return; + if(!file) { + gfx_done(); + asprintf(&cmd_buf, "%s %s", menu_ptr->label, arg); + syslinux_run_command(cmd_buf); + return; + } // first, load kernel |