From 2ea6929754f88fc50693ca23faa42947da93a863 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Mon, 6 Aug 2001 11:00:11 +0000 Subject: Bug 43 and 47: keymap fix git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@906 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter07/loadkeys.xml | 42 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 38 insertions(+), 4 deletions(-) (limited to 'chapter07') diff --git a/chapter07/loadkeys.xml b/chapter07/loadkeys.xml index 07d003538..a9ed74dae 100644 --- a/chapter07/loadkeys.xml +++ b/chapter07/loadkeys.xml @@ -1,10 +1,16 @@ Creating the loadkeys script + + +Create the /etc/init.d/loadkeys script by +running the following command: cat > loadkeys << "EOF" #!/bin/sh @@ -16,16 +22,44 @@ following command: source /etc/init.d/functions +# +# Include /etc/sysconfig/keyboard which contains the LAYOUT variable +# + +source /etc/sysconfig/keyboard + # # Load the default keymap file # echo -n "Loading keymap..." -/bin/loadkeys -d 2>/dev/null +/bin/loadkeys $LAYOUT 2>/dev/null evaluate_retval # End /etc/init.d/loadkeys EOF + +Creating the /etc/sysconfig/keyboard file + +Create a new file /etc/sysconfig/keyboard +by running the following: + +cat > /etc/sysconfig/keyboard << "EOF" +# Begin /etc/sysconfig/keyboard + +LAYOUT=<path-to-keymap> + +# End /etc/sysconfig/keyboard +EOF + +Replace <path-to-keymap> with the +path to the keymap you have selected. For example, if you have chosen the +US keymap, you would replace it with +/usr/share/kbd/keymaps/i386/qwerty/us.map.gz. + + + -- cgit v1.2.3-54-g00ecf