From 0170f6ae9b0fa8b5cfbc53664067958ea834af25 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Wed, 14 Aug 2013 00:36:13 +0200 Subject: [PATCH] use hotkey 'a' for OS X, and start searching for hotkeys at current default --- src/efi/gummiboot.c | 4 ++-- 1 file 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 -- 2.7.4