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
|
.IR 9bootpxe
|
||||||
will read the file
|
will read the file
|
||||||
.B /cfg/pxe/$ether
|
.B /cfg/pxe/$ether
|
||||||
|
or, if this file is not present,
|
||||||
|
.B /cfg/pxe/default
|
||||||
from the tftp server, where
|
from the tftp server, where
|
||||||
.B $ether
|
.B $ether
|
||||||
is the MAC address of the client's network card
|
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)
|
.IR plan9.ini (8)
|
||||||
file.
|
file.
|
||||||
.SH FILES
|
.SH FILES
|
||||||
|
|
|
@ -340,7 +340,8 @@ start(void *)
|
||||||
}
|
}
|
||||||
memmove(path, "/cfg/pxe/", 9);
|
memmove(path, "/cfg/pxe/", 9);
|
||||||
memmove(path+9, mac, 13);
|
memmove(path+9, mac, 13);
|
||||||
if(tftpopen(f = &t, path, yip, sip, gip)){
|
if(tftpopen(f = &t, path, yip, sip, gip))
|
||||||
|
if(tftpopen(f, "/cfg/pxe/default", yip, sip, gip)){
|
||||||
print("no config\r\n");
|
print("no config\r\n");
|
||||||
f = 0;
|
f = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue