summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 70b1fb1..1c65279 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 (;;) {
OpenPOWER on IntegriCloud