diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2010-12-05 21:34:42 +0100 |
---|---|---|
committer | Sebastian Herbszt <herbszt@gmx.de> | 2010-12-05 21:34:42 +0100 |
commit | 5f0ec9a7a78606f98965906b808ead79428ea080 (patch) | |
tree | 9ef5ec33253c1994488dd3a22d3663703651f53d /com32 | |
parent | b78b80a65bd2b65d975bd69b62a812ecd05ac3fb (diff) | |
download | syslinux-5f0ec9a7a78606f98965906b808ead79428ea080.tar.gz syslinux-5f0ec9a7a78606f98965906b808ead79428ea080.tar.xz syslinux-5f0ec9a7a78606f98965906b808ead79428ea080.zip |
gfxboot: support TEXT and ENDTEXT keywords
Support TEXT and ENDTEXT keywords; ignore the help text.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'com32')
-rw-r--r-- | com32/gfxboot/gfxboot.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index 65b2d498..cea43b42 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -319,7 +319,7 @@ int read_config_file(const char *filename) { FILE *f; char *s, *t, buf[MAX_CONFIG_LINE_LEN]; - unsigned u, top_level = 0; + unsigned u, top_level = 0, text = 0; if(!strcmp(filename, "~")) { top_level = 1; @@ -342,6 +342,14 @@ int read_config_file(const char *filename) if(*t) *t++ = 0; t = skip_spaces(t); + if(!strcasecmp(s, "endtext")) { + text = 0; + continue; + } + + if (text) + continue; + if(!strcasecmp(s, "timeout")) { timeout = atoi(t); continue; @@ -396,6 +404,11 @@ int read_config_file(const char *filename) continue; } + if(!strcasecmp(s, "text")) { + text = 1; + continue; + } + if(!strcasecmp(s, "menu") && menu_ptr) { s = skip_spaces(t); t = skip_nonspaces(s); |