I have add three simple lines to main.c to support this automatic
fallback.
By this way, I have now the same behavior like the netboot boot code or
commercial boot code (e.g. from the company incom).
for (;;) {
const char *kernel;
kernel = KERNEL_BUF[0] != '\0' ? KERNEL_BUF :
DEFAULT_BOOTFILE;
printf("Loading %I:%s ", arptable[ARP_SERVER].ipaddr,
kernel);
while (!loadkernel(kernel)) {
printf("Unable to load file.\n");
sleep(2); /* lay off server for a while */
#ifdef EMERGENCYDISKBOOT
exit(0);
#endif
}
}
--
Andreas Roscher --- President AROSOFT network GmbH
OMA install computers in 5 minutes (PC, Sun Systems, SGI, HP ....)
No more hand made management. Save your money for other things.
http://www.arosoft.de
|