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.
This commit is contained in:
parent
1f8197cf4d
commit
923a1dc3d1
@ -40,6 +40,7 @@ variable promptwidth
|
||||
|
||||
variable bootkey
|
||||
variable bootacpikey
|
||||
variable bootusbkey
|
||||
variable bootsafekey
|
||||
variable bootverbosekey
|
||||
variable bootsinglekey
|
||||
@ -159,6 +160,11 @@ at-xy ." `--{__________) [0m" 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
|
||||
|
Loading…
Reference in New Issue
Block a user