[syslinux:master] gfxboot: handle IPAPPEND

syslinux-bot for Steffen Winterfeldt wfeldt at opensuse.org
Sun Apr 25 07:39:25 PDT 2010


Commit-ID:  13ae3a4519f69e017bcb3f844964e69b033379fe
Gitweb:     http://syslinux.zytor.com/commit/13ae3a4519f69e017bcb3f844964e69b033379fe
Author:     Steffen Winterfeldt <wfeldt at opensuse.org>
AuthorDate: Tue, 13 Apr 2010 17:42:12 +0200
Committer:  Sebastian Herbszt <herbszt at gmx.de>
CommitDate: Sat, 24 Apr 2010 21:58:21 +0200

gfxboot: handle IPAPPEND

Signed-off-by: Steffen Winterfeldt <wfeldt at opensuse.org>
Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>


---
 com32/gfxboot/gfxboot.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index c300dcb..daf0056 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -709,6 +709,8 @@ void boot(int index)
   char *arg;
   menu_t *menu_ptr;
   int label_len;
+  unsigned u, ipapp;
+  const struct syslinux_ipappend_strings *ipappend;
 
   for(menu_ptr = menu; menu_ptr; menu_ptr = menu_ptr->next, index--) {
     if(!index) break;
@@ -730,6 +732,16 @@ void boot(int index)
 
   arg = skip_spaces(arg);
 
+  // handle IPAPPEND
+  if(menu_ptr->ipappend && (ipapp = atoi(menu_ptr->ipappend))) {
+    ipappend = syslinux_ipappend_strings();
+    for(u = 0; u < ipappend->count; u++) {
+      if((ipapp & (1 << u)) && ipappend->ptr[u]) {
+        sprintf(arg + strlen(arg), " %s", ipappend->ptr[u]);
+      }
+    }
+  }
+
   boot_entry(menu_ptr, arg);
 }
 



More information about the Syslinux-commits mailing list