aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/0007-Support-early-loading-of-keymap-if-kbd-is-installed.patch
blob: be753a932e6b533218d9774c061a9ee9eea61178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 117c2d1fae120a98fa8f5e3fa75b08044016dbef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
Date: Thu, 7 Mar 2019 16:55:53 +0100
Subject: [PATCH] Support early loading of keymap if kbd is installed

Early loading of the keymap with busybox was never supported and would
require modifying the save-keymaps services as well. Since no one
complained that it doesn't work with busybox so far just make it work
with kbd for now.
---
 sh/init-early.sh.Linux.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in
index f304e924..7571ff3d 100644
--- a/sh/init-early.sh.Linux.in
+++ b/sh/init-early.sh.Linux.in
@@ -48,8 +48,8 @@ if service_present "$RC_DEFAULTLEVEL" consolefont ||
 fi
 
 # Try and set a keyboard map as early as possible
-if service_present "$RC_DEFAULTLEVEL" keymaps ||
-   service_present "$RC_BOOTLEVEL" keymaps; then
+if service_present "$RC_DEFAULTLEVEL" loadkeys ||
+   service_present "$RC_BOOTLEVEL" loadkeys; then
 	kbd_mode $kmode -C "$CONSOLE" 2>/dev/null
 	if [ -r "$RC_LIBEXECDIR"/console/keymap ]; then
 		loadkeys -q "$RC_LIBEXECDIR"/console/keymap 2>/dev/null
-- 
2.33.0