From 20b4f55603ffc2c31d30760f86595cf46b75c40b Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Tue, 21 Aug 2012 14:23:52 +0200 Subject: 9bootpxe: try /cfg/pxe/default if /cfg/pxe/$ether fails before breaking to the prompt. --- sys/src/boot/pc/pxe.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/src') 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)){ -- cgit v1.2.3