diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-28 22:20:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-06-28 22:20:13 +0000 |
commit | a696a81cabb02618dd608e4429527223086c895e (patch) | |
tree | 6f3ed38a0996913f2917890c42a997e02abdb75d /sys/arch | |
parent | e2546c0ed9de9f453c28d13893e7cab5f97e212b (diff) |
Ah, this will not help the netboot case
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/amd64/amd64/autoconf.c | 4 | ||||
-rw-r--r-- | sys/arch/i386/i386/autoconf.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/autoconf.c b/sys/arch/amd64/amd64/autoconf.c index 0acaae61e48..f98e3cdb596 100644 --- a/sys/arch/amd64/amd64/autoconf.c +++ b/sys/arch/amd64/amd64/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.32 2010/06/27 19:21:20 deraadt Exp $ */ +/* $OpenBSD: autoconf.c,v 1.33 2010/06/28 22:20:12 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */ /*- @@ -194,11 +194,13 @@ diskconf(void) break; } if (ifp) { +#if defined(NFSCLIENT) printf("PXE boot MAC address %s, interface %s\n", ether_sprintf(bios_bootmac->mac), ifp->if_xname); bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), 0, &tmpdev); part = 0; +#endif } else printf("PXE boot MAC address %s, interface %s\n", ether_sprintf(bios_bootmac->mac), "unknown"); diff --git a/sys/arch/i386/i386/autoconf.c b/sys/arch/i386/i386/autoconf.c index 7a649ad1881..9d49b0988fb 100644 --- a/sys/arch/i386/i386/autoconf.c +++ b/sys/arch/i386/i386/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.83 2010/06/27 19:21:19 deraadt Exp $ */ +/* $OpenBSD: autoconf.c,v 1.84 2010/06/28 22:20:12 deraadt Exp $ */ /* $NetBSD: autoconf.c,v 1.20 1996/05/03 19:41:56 christos Exp $ */ /*- @@ -205,11 +205,13 @@ diskconf(void) break; } if (ifp) { +#if defined(NFSCLIENT) printf("PXE boot MAC address %s, interface %s\n", ether_sprintf(bios_bootmac->mac), ifp->if_xname); bootdv = parsedisk(ifp->if_xname, strlen(ifp->if_xname), 0, &tmpdev); part = 0; +#endif } else printf("PXE boot MAC address %s, interface %s\n", ether_sprintf(bios_bootmac->mac), "unknown"); |