2009-07-21 12:41:55 +02:00
|
|
|
diff --git a/core/keywords b/core/keywords
|
|
|
|
index c289ae2..b7d4c4b 100644
|
2009-06-20 03:13:32 +02:00
|
|
|
--- a/core/keywords
|
|
|
|
+++ b/core/keywords
|
|
|
|
@@ -6,6 +6,7 @@ initrd
|
|
|
|
config
|
|
|
|
default
|
|
|
|
ui
|
|
|
|
+gfxboot
|
|
|
|
display
|
|
|
|
font
|
|
|
|
implicit
|
2009-07-21 12:41:55 +02:00
|
|
|
diff --git a/core/keywords.inc b/core/keywords.inc
|
|
|
|
index d0f7db3..fc00ad7 100644
|
2009-06-20 03:13:32 +02:00
|
|
|
--- a/core/keywords.inc
|
|
|
|
+++ b/core/keywords.inc
|
2009-07-21 12:41:55 +02:00
|
|
|
@@ -91,6 +91,7 @@ keywd_table:
|
2009-06-20 03:13:32 +02:00
|
|
|
keyword f0, pc_filename, FKeyN(10)
|
|
|
|
keyword f11, pc_filename, FKeyN(11)
|
|
|
|
keyword f12, pc_filename, FKeyN(12)
|
|
|
|
+ keyword gfxboot, pc_gfxboot
|
|
|
|
%if IS_PXELINUX
|
|
|
|
keyword ipappend, pc_ipappend
|
|
|
|
%endif
|
2009-07-21 12:41:55 +02:00
|
|
|
diff --git a/core/parseconfig.inc b/core/parseconfig.inc
|
|
|
|
index 65d71c9..2302536 100644
|
2009-06-20 03:13:32 +02:00
|
|
|
--- a/core/parseconfig.inc
|
|
|
|
+++ b/core/parseconfig.inc
|
|
|
|
@@ -30,6 +30,20 @@ pc_default: cmp ax,[DefaultLevel]
|
|
|
|
ret
|
|
|
|
|
|
|
|
;
|
2010-04-27 18:00:09 +02:00
|
|
|
+; "gfxboot" command; Shorthand for "ui gfxboot.c32"
|
2009-06-20 03:13:32 +02:00
|
|
|
+;
|
|
|
|
+pc_gfxboot:
|
|
|
|
+ mov ax,2
|
|
|
|
+ mov [DefaultLevel],ax ; Setup UI mode
|
|
|
|
+ mov si,gfxboot_cmd
|
|
|
|
+ mov di,default_cmd
|
|
|
|
+ call strcpy
|
|
|
|
+ dec di
|
|
|
|
+ call getline
|
|
|
|
+ mov byte [di-1],0 ; null-terminate
|
|
|
|
+ ret
|
|
|
|
+
|
|
|
|
+;
|
|
|
|
; "ontimeout" command
|
|
|
|
;
|
|
|
|
pc_ontimeout: mov di,Ontimeout
|
2009-07-21 12:41:55 +02:00
|
|
|
@@ -439,6 +453,7 @@ commit_vk:
|
2009-06-20 03:13:32 +02:00
|
|
|
section .data
|
|
|
|
vk_overflow_msg db 'Out of memory parsing config file', CR, LF, 0
|
|
|
|
SerialNotice db 1 ; Only print this once
|
2010-04-27 18:00:09 +02:00
|
|
|
+gfxboot_cmd db 'gfxboot.c32 ', 0
|
2009-06-20 03:13:32 +02:00
|
|
|
|
|
|
|
section .bss
|
|
|
|
alignb 4
|