aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorDaniel C. Sobral <dcs@FreeBSD.org>2000-09-15 07:54:10 +0000
committerDaniel C. Sobral <dcs@FreeBSD.org>2000-09-15 07:54:10 +0000
commit9f0c5de5f72926123427c93a6c852eb47577b2d8 (patch)
treef9581bb6715ef449ee813d164c3ab7186e976613 /sys/boot
parentc0329b1af3cc706de3e0cbdbb7adf7ba2e75c885 (diff)
Notes
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/common/boot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/common/boot.c b/sys/boot/common/boot.c
index 70b1fb1a9a300..1c65279d421f5 100644
--- a/sys/boot/common/boot.c
+++ b/sys/boot/common/boot.c
@@ -175,10 +175,6 @@ autoboot(int timeout, char *prompt)
if (timeout == -1) /* all else fails */
timeout = 10;
- otime = time(NULL);
- when = otime + timeout; /* when to boot */
- yes = 0;
-
kernelname = getenv("kernelname");
if (kernelname == NULL) {
argv[0] = NULL;
@@ -190,6 +186,10 @@ autoboot(int timeout, char *prompt)
}
}
+ otime = time(NULL);
+ when = otime + timeout; /* when to boot */
+ yes = 0;
+
printf("%s\n", (prompt == NULL) ? "Hit [Enter] to boot immediately, or any other key for command prompt." : prompt);
for (;;) {