/[grub]/grub/stage2/common.c
ViewVC logotype

Diff of /grub/stage2/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by okuji, Wed Jan 2 21:56:40 2002 UTC revision 1.22 by okuji, Tue Jan 8 02:48:44 2002 UTC
# Line 135  mmap_avail_at (unsigned long bottom) Line 135  mmap_avail_at (unsigned long bottom)
135  }  }
136  #endif /* ! STAGE1_5 */  #endif /* ! STAGE1_5 */
137    
 #ifdef SUPPORT_DISKLESS  
 /* Set up the diskless environment so that GRUB can get a configuration  
    file from a network.  */  
 static int  
 setup_diskless_environment (void)  
 {  
   /* For now, there is no difference between BOOTP and DHCP in GRUB.  */  
   if (! bootp ())  
     {  
       grub_printf ("BOOTP/DHCP fails.\n");  
       return 0;  
     }  
   
   /* This will be erased soon, though...  */  
   print_network_configuration ();  
   return 1;  
 }  
 #endif /* SUPPORT_DISKLESS */  
   
138  /* This queries for BIOS information.  */  /* This queries for BIOS information.  */
139  void  void
140  init_bios_info (void)  init_bios_info (void)
# Line 333  init_bios_info (void) Line 314  init_bios_info (void)
314    
315  #endif /* STAGE1_5 */  #endif /* STAGE1_5 */
316    
 #ifdef SUPPORT_DISKLESS  
   /* If SUPPORT_DISKLESS is defined, initialize the network here.  */  
   if (! setup_diskless_environment ())  
     return;  
 #endif  
   
317    /* Set boot drive and partition.  */    /* Set boot drive and partition.  */
318    saved_drive = boot_drive;    saved_drive = boot_drive;
319    saved_partition = install_partition;    saved_partition = install_partition;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26