summaryrefslogtreecommitdiff
path: root/sys/src/boot
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-08-21 14:23:52 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-08-21 14:23:52 +0200
commit20b4f55603ffc2c31d30760f86595cf46b75c40b (patch)
tree5cc0036afec03c5cb4f0d148cf647b2ee2b76ed4 /sys/src/boot
parentbe0301f45850ca70db0f2ec8258e73615a0ec7be (diff)
9bootpxe: try /cfg/pxe/default if /cfg/pxe/$ether fails before breaking to the prompt.
Diffstat (limited to 'sys/src/boot')
-rw-r--r--sys/src/boot/pc/pxe.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/src/boot/pc/pxe.c b/sys/src/boot/pc/pxe.c
index a950b2579..97ee259cb 100644
--- a/sys/src/boot/pc/pxe.c
+++ b/sys/src/boot/pc/pxe.c
@@ -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)){