1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Made '?' do the same thing as help.

Fixed bug in netmask command.
Loads kernel fine.  I'm trying to get locore/autoconf to like the stuff.
This commit is contained in:
Poul-Henning Kamp 1994-10-18 02:46:48 +00:00
parent b888f09c89
commit 232b94fe38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3679
2 changed files with 9 additions and 5 deletions

View File

@ -35,6 +35,7 @@ struct bootcmds_t {
int (*func)();
char *help;
} bootcmds[] = {
{"?", cmd_help, " this list"},
{"help", cmd_help, " this list"},
{"ip", cmd_ip, "<addr> set my IP addr"},
{"server", cmd_server, "<addr> set TFTP server IP addr"},
@ -98,8 +99,7 @@ cmd_netmask(p)
int i;
if (!setip(p, &netmask)) {
netmask = ntohl(netmask);
printf("netmask is %I\r\n",
arptable[ARP_SERVER].ipaddr);
printf("netmask is %I\r\n", netmask);
}
netmask = htonl(netmask);
}

View File

@ -93,11 +93,15 @@ load()
arptable[ARP_SERVER].ipaddr);
/* Now use TFTP to load configuration file */
sprintf(cfg,"/tftpboot/cfg.%I",arptable[ARP_CLIENT].ipaddr);
sprintf(cfg,"cfg.%I",arptable[ARP_CLIENT].ipaddr);
printf("Loading %s...\r\n",cfg);
if (!tftp(cfg)) {
printf("Unable to load config file.\r\n");
longjmp(jmp_bootmenu,1);
sprintf(cfg,"/tftpboot/cfg.%I",arptable[ARP_CLIENT].ipaddr);
printf("Loading %s...\r\n",cfg);
if (!tftp(cfg)) {
printf("Unable to load config file.\r\n");
longjmp(jmp_bootmenu,1);
}
}
/* Execute commands in config file */
p = config_buffer;