[syslinux:master] gfxboot: support TEXT and ENDTEXT keywords

syslinux-bot for Sebastian Herbszt herbszt at gmx.de
Mon Dec 6 16:00:31 PST 2010


Commit-ID:  5f0ec9a7a78606f98965906b808ead79428ea080
Gitweb:     http://syslinux.zytor.com/commit/5f0ec9a7a78606f98965906b808ead79428ea080
Author:     Sebastian Herbszt <herbszt at gmx.de>
AuthorDate: Sun, 5 Dec 2010 21:34:42 +0100
Committer:  Sebastian Herbszt <herbszt at gmx.de>
CommitDate: Sun, 5 Dec 2010 21:34:42 +0100

gfxboot: support TEXT and ENDTEXT keywords

Support TEXT and ENDTEXT keywords; ignore the help text.

Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>


---
 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 65b2d49..cea43b4 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);



More information about the Syslinux-commits mailing list