9bootpxe: try /cfg/pxe/default if /cfg/pxe/$ether fails before breaking to the prompt.
This commit is contained in:
parent
be0301f458
commit
20b4f55603
2 changed files with 8 additions and 5 deletions
|
@ -83,10 +83,12 @@ for details). Once started,
|
|||
.IR 9bootpxe
|
||||
will read the file
|
||||
.B /cfg/pxe/$ether
|
||||
or, if this file is not present,
|
||||
.B /cfg/pxe/default
|
||||
from the tftp server, where
|
||||
.B $ether
|
||||
is the MAC address of the client's network card
|
||||
in lower case hex, and use this as its
|
||||
in lower case hex, and uses this as its
|
||||
.IR plan9.ini (8)
|
||||
file.
|
||||
.SH FILES
|
||||
|
|
|
@ -340,10 +340,11 @@ start(void *)
|
|||
}
|
||||
memmove(path, "/cfg/pxe/", 9);
|
||||
memmove(path+9, mac, 13);
|
||||
if(tftpopen(f = &t, path, yip, sip, gip)){
|
||||
print("no config\r\n");
|
||||
f = 0;
|
||||
}
|
||||
if(tftpopen(f = &t, path, yip, sip, gip))
|
||||
if(tftpopen(f, "/cfg/pxe/default", yip, sip, gip)){
|
||||
print("no config\r\n");
|
||||
f = 0;
|
||||
}
|
||||
for(;;){
|
||||
kern = configure(f, path); f = 0;
|
||||
if(tftpopen(&t, kern, yip, sip, gip)){
|
||||
|
|
Loading…
Reference in a new issue