summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-08-14 00:36:13 +0200
committerKay Sievers <kay@vrfy.org>2013-08-14 00:36:13 +0200
commit0170f6ae9b0fa8b5cfbc53664067958ea834af25 (patch)
treea986b21aac3ddaf195a0953524ee4803febfff2e
parent9ed40aec115853f91420dd43b103ef961eb8d04e (diff)
use hotkey 'a' for OS X, and start searching for hotkeys at current default
-rw-r--r--src/efi/gummiboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c
index 43c9189..22dfd6e 100644
--- a/src/efi/gummiboot.c
+++ b/src/efi/gummiboot.c
@@ -1974,7 +1974,7 @@ static VOID config_entry_add_osx(Config *config) {
root = LibOpenRoot(handles[i]);
if (!root)
continue;
- config_entry_add_loader_auto(config, handles[i], root, NULL, L"auto-osx", 'm', L"OS X",
+ config_entry_add_loader_auto(config, handles[i], root, NULL, L"auto-osx", 'a', L"OS X",
L"\\System\\Library\\CoreServices\\boot.efi");
uefi_call_wrapper(root->Close, 1, root);
}
@@ -2189,7 +2189,7 @@ EFI_STATUS efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *sys_table) {
INT16 idx;
/* find matching key in config entries */
- idx = entry_lookup_key(&config, 0, k.UnicodeChar);
+ idx = entry_lookup_key(&config, config.idx_default, k.UnicodeChar);
if (idx >= 0)
config.idx_default = idx;
else