From 582a105e3514fc54946a0b6cf1df5d9af5224f9c Mon Sep 17 00:00:00 2001 From: brooks Date: Sat, 30 Oct 2004 13:45:13 +0000 Subject: [PATCH] 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. --- sys/boot/forth/beastie.4th | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/boot/forth/beastie.4th b/sys/boot/forth/beastie.4th index 8b727a2f347c..824d2df63344 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