2002-06-15 Yoshinori K. Okuji <okuji@enbug.org>

* stage2/disk_io.c [SUPPORT_NETBOOT] (GRUB): Defined.
	[SUPPORT_NETBOOT]: Include etherboot.h.
	[!STAGE1_5] (print_completions) [SUPPORT_NETBOOT]: When
	completing a disk name, if NETWORK_READY is true, add "nd" as a
	completion.
This commit is contained in:
okuji 2002-06-15 01:04:59 +00:00
parent e2a3acbed0
commit 52c5e2e399
2 changed files with 19 additions and 2 deletions

View file

@ -1,3 +1,11 @@
2002-06-15 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/disk_io.c [SUPPORT_NETBOOT] (GRUB): Defined.
[SUPPORT_NETBOOT]: Include etherboot.h.
[!STAGE1_5] (print_completions) [SUPPORT_NETBOOT]: When
completing a disk name, if NETWORK_READY is true, add "nd" as a
completion.
2002-06-15 Yoshinori K. Okuji <okuji@enbug.org> 2002-06-15 Yoshinori K. Okuji <okuji@enbug.org>
* stage2/fsys_xfs.c (le32): Don't use bswap, but use xchgb and * stage2/fsys_xfs.c (le32): Don't use bswap, but use xchgb and

View file

@ -19,9 +19,13 @@
*/ */
#include "shared.h" #include <shared.h>
#include <filesys.h>
#include "filesys.h" #ifdef SUPPORT_NETBOOT
# define GRUB 1
# include <etherboot.h>
#endif
#ifdef GRUB_UTIL #ifdef GRUB_UTIL
# include <device.h> # include <device.h>
@ -1310,6 +1314,11 @@ print_completions (int is_filename, int is_completion)
} }
} }
# ifdef SUPPORT_NETBOOT
if (network_ready)
print_a_completion ("nd");
# endif /* SUPPORT_NETBOOT */
if (is_completion && *unique_string) if (is_completion && *unique_string)
{ {
ptr = buf; ptr = buf;