main() { int i, currname = 0; /* * We want netopen() to ask for IP address, etc, rather * that using bootparams. */ netio_ask = 1; printf("\n"); printf(">> %s, Revision %s\n", bootprog_name, bootprog_rev); printf(">> (%s, %s)\n", bootprog_maker, bootprog_date); printf(">> HP 9000/%s SPU\n", getmachineid()); gethelp(); for (;;) { printf("sys_inst> "); bzero(line, sizeof(line)); gets(line); if (line[0] == '\n' || line[0] == '\0') continue; for (i = 0; i < NCMDS; ++i) if (strcmp(line, inst_commands[i].ic_cmd) == 0) { (*inst_commands[i].ic_func)(); break; } if (i == NCMDS) printf("unknown command: %s\n", line); } }
int main() { int currname = 0; printf("\n>> OpenBSD [%dKB] UNIFIED BOOT %s HP 9000/%s CPU\n", (__LDPGSZ / 1024), version, getmachineid()); printf(">> Enter \"reset\" to reset system.\n"); bdev = B_TYPE(bootdev); badapt = B_ADAPTOR(bootdev); bctlr = B_CONTROLLER(bootdev); bunit = B_UNIT(bootdev); bpart = B_PARTITION(bootdev); for (;;) { name = names[currname++]; if (currname == NUMNAMES) currname = 0; if (!noconsole) { howto = 0; getbootdev(&howto); } else printf(": %s\n", name); exec(name, lowram, howto); printf("boot: %s\n", strerror(errno)); } return (0); }