diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-05-09 18:31:23 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-05-09 18:31:23 -0700 |
commit | 1b3bc4ee47b57799be24fe3e75028bdfbb1d0c86 (patch) | |
tree | 0830d87c515a40a7a7eff6e29988cd8de476e3e0 | |
parent | cdad2ca59970c8abc034c37c195a25831fe49b88 (diff) | |
download | syslinux-1b3bc4ee47b57799be24fe3e75028bdfbb1d0c86.tar.gz |
PXELINUX: Add <Ctrl-N> to print the network informationsyslinux-3.50-pre8
Pressing <Ctrl-N> at the boot prompt will output the ipappend strings.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ui.inc | 28 |
2 files changed, 27 insertions, 3 deletions
@@ -24,6 +24,8 @@ Changes in 3.50: 65535*sectors. * vesamenu: fix decoding of palettized PNG images. * Update the Linux kernel boot protocol. + * PXELINUX: Press Ctrl-N at the boot prompt to read out the + network info. Changes in 3.36: * MEMDISK: Disable EDD by default on floppy disks. EDD can be @@ -89,6 +89,10 @@ not_ascii: mov byte [FuncFlag],0 je command_done cmp al,'F' & 1Fh ; <Ctrl-F> je set_func_flag +%if IS_PXELINUX + cmp al,'N' & 1Fh ; <Ctrl-N> + je show_network_info +%endif cmp al,'U' & 1Fh ; <Ctrl-U> je kill_command ; Kill input line cmp al,'V' & 1Fh ; <Ctrl-V> @@ -102,7 +106,8 @@ backspace: cmp di,command_line ; Make sure there is anything dec di ; Unstore one character mov si,wipe_char ; and erase it from the screen call cwritestr - jmp short get_char_2 +get_char_2: + jmp short get_char kill_command: call crlf @@ -114,8 +119,7 @@ force_text_mode: set_func_flag: mov byte [FuncFlag],1 -get_char_2: - jmp short get_char + jmp short get_char_2 ctrl_f_0: add al,10 ; <Ctrl-F>0 == F10 ctrl_f: sub al,'1' @@ -173,6 +177,24 @@ fk_nofile: pop di jmp short get_char_2 ; +; Show network info (in the form of the ipappend strings) +; +%if IS_PXELINUX +show_network_info: + mov si,IPAppends ; See comboot.doc + mov cx,numIPAppends +.loop: + lodsw + push si + mov si,ax + call cwritestr + call crlf + pop si + loop .loop + jmp fk_wrcmd +%endif + +; ; Jump here to run the default command line ; auto_boot: |