Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add efibootkey #192

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add efibootkey #192

wants to merge 1 commit into from

Conversation

demitriusbelai
Copy link

Add efibootkey command for add hot keys to boot options.

Spec: https://uefi.org/specs/UEFI/2.10/03_Boot_Manager.html#launching-boot-load-options-using-hot-keys

Command line arguments:

Arg Description
-b | --bootnum XXXX Hot key for BootXXXX
-k | --key CODE Code of Key, can repeat for more than one
--alt Alt must be pressed
--shift Shift key must be pressed
--ctrl Control key must be pressed
--logo Logo key must be pressed
--menu Menu key must be pressed
--sysreq SysReq must be pressed
-l | -- list List Hot Keys
-B | --delete-keynum Delete Hot Key
-n | --keynum XXXX Use KeyXXXX

Examples

Verifing if hot key is supported:

efibootkey --support

If I want use F1 to boot Boot0001:

efibootkey -b 1 -k F1

'l' to boot Boot0000:

efibootkey -b 0 -k l

List hot keys:

efibootkey --list

Now, delete the hot key:

efibootkey -B -n 1

Signed-off-by: Demitrius Belai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant