aboutsummaryrefslogtreecommitdiffstats
path: root/core/ui.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/ui.inc')
-rw-r--r--core/ui.inc15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/ui.inc b/core/ui.inc
index 1b40717a..22258fcc 100644
--- a/core/ui.inc
+++ b/core/ui.inc
@@ -292,12 +292,27 @@ show_network_info:
; Jump here to run the default command line
;
auto_boot:
+ cmp word [DefaultLevel],0 ; No UI or DEFAULT?
+ jne .have_default
+ mov si,no_default_msg
+ call writestr
+ cmp word [NoEscape],0 ; NOESCAPE but no DEFAULT?
+ jne kaboom ; If so, we're stuck!
+ jmp enter_command
+
+.have_default:
mov si,default_cmd
mov di,command_line
mov cx,(max_cmd_len+4) >> 2
rep movsd
jmp short load_kernel
+ section .data
+no_default_msg db 'No DEFAULT or UI configuration directive found!'
+ db CR, LF, 0
+
+ section .text
+
;
; Jump here when the command line is completed
;