wok-next diff syslinux/stuff/extra/readconfig.u @ rev 13747
syslinux: add MENU STARTIFNOARG
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Dec 31 11:41:25 2012 +0100 (2012-12-31) |
parents | |
children | 922ed71c2f6d |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/syslinux/stuff/extra/readconfig.u Mon Dec 31 11:41:25 2012 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +--- com32/menu/readconfig.c 1.5 ++++ com32/menu/readconfig.c 1.6 +@@ -874,6 +874,12 @@ 1.7 + } 1.8 + } else if (looking_at(p, "start")) { 1.9 + start_menu = m; 1.10 ++ } else if ((ep = looking_at(p, "startifnoarg"))) { 1.11 ++ size_t size; 1.12 ++ int slot; 1.13 ++ slot = strtoul(ep, &ep, 0); 1.14 ++ if (!syslinux_getadv(slot, &size)) 1.15 ++ start_menu = m; 1.16 + } else if (looking_at(p, "help")) { 1.17 + if (ld.label) { 1.18 + ld.action = MA_HELP;