diff options
Diffstat (limited to 'chapter07/loadkeys.xml')
-rw-r--r-- | chapter07/loadkeys.xml | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/chapter07/loadkeys.xml b/chapter07/loadkeys.xml index 505117a28..fd465a6fa 100644 --- a/chapter07/loadkeys.xml +++ b/chapter07/loadkeys.xml @@ -1,43 +1,15 @@ <sect1 id="ch07-loadkeys"> -<title>Creating the loadkeys script</title> +<title>Configuring the loadkeys script</title> <?dbhtml filename="loadkeys.html" dir="chapter07"?> -<para>You only need to create this script if you don't have a +<para>You only need to create configure script if you don't have a default 101 keys US keyboard layout.</para> -<para>Create the <filename>/etc/init.d/loadkeys</filename> script by -running the following command:</para> +<para>The /etc/sysconfig/keyboard file contains the information the +loadkeys script needs to operate. This file contains the LAYOUT variable +which tells loadkeys what keymap to load that corresponds with your +keyboard.</para> -<para><screen><userinput>cat > /etc/init.d/loadkeys << "EOF"</userinput> -#!/bin/sh -# Begin /etc/init.d/loadkeys - -# -# Include the functions declared in the /etc/init.d/functions file -# - -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 $LAYOUT 2>/dev/null -evaluate_retval - -# End /etc/init.d/loadkeys -<userinput>EOF</userinput></screen></para> - -<sect2> -<title>Creating the /etc/sysconfig/keyboard file</title> - <para>Create a new file <filename>/etc/sysconfig/keyboard</filename> by running the following:</para> @@ -55,7 +27,5 @@ path to the keymap you have selected. For example, if you have chosen the US keymap, you would replace it with <userinput>/usr/share/kbd/keymaps/i386/qwerty/us.map.gz</userinput></para> -</sect2> - </sect1> |