summaryrefslogtreecommitdiff
path: root/ui.inc
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-22 12:49:04 +0000
committerhpa <hpa>2004-12-22 12:49:04 +0000
commitfef30b6f809ea30d650ad369162b4799f2302187 (patch)
tree69ad8e6896223c262b453c52adcf3a1cdf989404 /ui.inc
parent7fd2707f21bb7b72f926ef72f38ef2416075720d (diff)
downloadsyslinux-fef30b6f809ea30d650ad369162b4799f2302187.tar.gz
Support alternate TFTP servers via filename syntax.syslinux-3.00-pre1
Diffstat (limited to 'ui.inc')
-rw-r--r--ui.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui.inc b/ui.inc
index 2872ee55..33b69ddf 100644
--- a/ui.inc
+++ b/ui.inc
@@ -278,7 +278,11 @@ vk_check:
%if IS_PXELINUX || IS_ISOLINUX
; Is this a "localboot" pseudo-kernel?
+%if IS_PXELINUX
+ cmp byte [VKernelBuf+vk_rname+4], 0
+%else
cmp byte [VKernelBuf+vk_rname], 0
+%endif
jne get_kernel ; No, it's real, go get it
mov ax, [VKernelBuf+vk_rname+1]
@@ -315,7 +319,7 @@ get_kernel: mov byte [KernelName+FILENAME_MAX],0 ; Zero-terminate filename/e
mov eax,[KernelName+8] ; Save initial extension
mov [exten_table_end],eax ; Last case == initial ext.
%else
- mov di,KernelName
+ mov di,KernelName+4*IS_PXELINUX
xor al,al
mov cx,FILENAME_MAX-5 ; Need 4 chars + null
repne scasb ; Scan for final null
@@ -429,7 +433,7 @@ kernel_good:
%else
push di
push ax
- mov di,KernelName
+ mov di,KernelName+4*IS_PXELINUX
xor al,al
mov cx,FILENAME_MAX
repne scasb