From 52c5e2e39971b5c7748ec3c857e3993c32c24f1b Mon Sep 17 00:00:00 2001 From: okuji Date: Sat, 15 Jun 2002 01:04:59 +0000 Subject: [PATCH] 2002-06-15 Yoshinori K. Okuji * 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. --- ChangeLog | 8 ++++++++ stage2/disk_io.c | 13 +++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e0f35f126..c481b2cf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-06-15 Yoshinori K. Okuji + + * 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 * stage2/fsys_xfs.c (le32): Don't use bswap, but use xchgb and diff --git a/stage2/disk_io.c b/stage2/disk_io.c index e65865d87..8fe314f22 100644 --- a/stage2/disk_io.c +++ b/stage2/disk_io.c @@ -19,9 +19,13 @@ */ -#include "shared.h" +#include +#include -#include "filesys.h" +#ifdef SUPPORT_NETBOOT +# define GRUB 1 +# include +#endif #ifdef GRUB_UTIL # include @@ -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) { ptr = buf;