summaryrefslogtreecommitdiff
path: root/ui.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-05-29 22:11:23 +0000
committerhpa <hpa>2004-05-29 22:11:23 +0000
commit975a4c3b343c09a340d95f1a2a4ece3556c57a10 (patch)
tree6a357b29c4306ff8bd950d176edde228daca64fb /ui.inc
parent32febd4f574911c90ae2d543f061b33379f200a7 (diff)
downloadsyslinux-975a4c3b343c09a340d95f1a2a4ece3556c57a10.tar.gz
- Add "allowoptions" command
- Fix the handling of x0x IP addresses
Diffstat (limited to 'ui.inc')
-rw-r--r--ui.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui.inc b/ui.inc
index f98020cd..8883381b 100644
--- a/ui.inc
+++ b/ui.inc
@@ -215,6 +215,16 @@ clin_is_wsp: and al,al
clin_opt_ptr: dec si ; Point to first nonblank
mov [CmdOptPtr],si ; Save ptr to first option
;
+; If "allowoptions 0", put a null character here in order to ignore any
+; user-specified options.
+;
+ mov ax,[AllowOptions]
+ and ax,ax
+ jnz clin_opt_ok
+ mov [si],al
+clin_opt_ok:
+
+;
; Now check if it is a "virtual kernel"
;
mov cx,[VKernelCtr]