So, on other platforms we use the BOOTP/DHCP file name for the boot program

and use a default file name of "netbsd" for the kernel.  Do the same thing
here, as it hardly makes sense any other way.
This commit is contained in:
mycroft 2003-11-05 04:18:26 +00:00
parent 82812c7677
commit 06eb56a853
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: devopen.c,v 1.3 2003/03/11 18:32:59 drochner Exp $ */
/* $NetBSD: devopen.c,v 1.4 2003/11/05 04:18:26 mycroft Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@ -93,7 +93,7 @@ devopen(struct open_file *f, const char *fname, char **file)
f->f_dev = dp;
/* If the DHCP server provided a file name, use it. */
if (bootfile[0] != '\0')
if (!fname && bootfile[0] != '\0')
fname = bootfile;
filename = strchr(fname, ':');