1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Fall back to /pxeroot as the location of the NFS exported directory

if we are not given one by dhcp.
Remove extra includes while I am here.

Reminded by:	jlemon
This commit is contained in:
Paul Saab 2000-04-29 23:08:49 +00:00
parent 8e30378f89
commit 95394e643f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59768

View File

@ -31,22 +31,16 @@
*/
#include <stand.h>
#include <string.h>
#include <stdarg.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/udp.h>
#include <netinet/ip.h>
#include <sys/reboot.h>
#include <string.h>
#include <sys/reboot.h>
#include <arpa/tftp.h>
#include <net.h>
#include <netif.h>
#include <stdarg.h>
#include <bootstrap.h>
#include "btxv86.h"
#include "pxe.h"
@ -285,10 +279,10 @@ pxe_open(struct open_file *f, ...)
* which brought us to life and a default rootpath.
*/
bootp(pxe_sock);
if (rootip.s_addr == 0) {
if (rootip.s_addr == 0)
rootip.s_addr = bootplayer.sip;
if (!rootpath[1])
strcpy(rootpath, PXENFSROOTPATH);
}
for(i=0; i<FNAME_SIZE; i++)
if(rootpath[i] == ':')