summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-10-30 13:45:13 +0000
committerbrooks <brooks@FreeBSD.org>2004-10-30 13:45:13 +0000
commit582a105e3514fc54946a0b6cf1df5d9af5224f9c (patch)
tree52bf857163561db80ab39912a5fefc4b6ebcd464 /sys/boot
parent99334313420dd90c7d7f5cc6dac1a292b472001f (diff)
downloadFreeBSD-src-582a105e3514fc54946a0b6cf1df5d9af5224f9c.zip
FreeBSD-src-582a105e3514fc54946a0b6cf1df5d9af5224f9c.tar.gz
Add a loader menu option to set hint.atkbd.0.flags=0x1 which allows USB
keyboards to work if no PS/2 keyboard is attached. The position in the menu was chosen to avoid moving option 6 (loader prompt). This should be a no-op on non-i386/amd64 machines.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/forth/beastie.4th10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/boot/forth/beastie.4th b/sys/boot/forth/beastie.4th
index 8b727a2..824d2df 100644
--- a/sys/boot/forth/beastie.4th
+++ b/sys/boot/forth/beastie.4th
@@ -40,6 +40,7 @@ variable promptwidth
variable bootkey
variable bootacpikey
+variable bootusbkey
variable bootsafekey
variable bootverbosekey
variable bootsinglekey
@@ -159,6 +160,11 @@ at-xy ." `--{__________) " 1+
printmenuitem ." Boot FreeBSD in single user mode" bootsinglekey !
printmenuitem ." Boot FreeBSD with verbose logging" bootverbosekey !
printmenuitem ." Escape to loader prompt" escapekey !
+ s" arch-i386" environment? if
+ printmenuitem ." Boot FreeBSD with USB keyboard" bootusbkey !
+ else
+ -2 bootacpikey !
+ then
printmenuitem ." Reboot" rebootkey !
menuX @ 20 at-xy
." Select option, [Enter] for default"
@@ -223,6 +229,10 @@ set-current
then
0 boot
then
+ dup bootusbkey @ = if
+ s" 0x1" s" hint.atkbd.0.flags" setenv
+ 0 boot
+ then
dup bootsafekey @ = if
s" arch-i386" environment? if
s" acpi_load" unsetenv
OpenPOWER on IntegriCloud