aboutsummaryrefslogtreecommitdiff
path: root/stand/userboot
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-06-09 15:10:39 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-06-09 15:10:39 +0000
commit593e2c6ecec705b9fe0f6dcc366b5c1def7a1a7a (patch)
tree3b1dd02d61e87abc4867ce3c1339596052217f04 /stand/userboot
parent4a0f8b339eca10c1eb62bd21474d818ec877e8a5 (diff)
Notes
Diffstat (limited to 'stand/userboot')
-rw-r--r--stand/userboot/userboot/bootinfo.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/stand/userboot/userboot/bootinfo.c b/stand/userboot/userboot/bootinfo.c
index 289ca071fe89..6985c7716608 100644
--- a/stand/userboot/userboot/bootinfo.c
+++ b/stand/userboot/userboot/bootinfo.c
@@ -43,7 +43,6 @@ bi_getboothowto(char *kargs)
char *curpos, *next, *string;
int howto;
int active;
- int i;
int vidconsole;
/* Parse kargs */
@@ -96,10 +95,8 @@ bi_getboothowto(char *kargs)
cp++;
}
}
- /* get equivalents from the environment */
- for (i = 0; howto_names[i].ev != NULL; i++)
- if (getenv(howto_names[i].ev) != NULL)
- howto |= howto_names[i].mask;
+
+ howto |= bootenv_flags();
/* Enable selected consoles */
string = next = strdup(getenv("console"));