aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07/loadkeys.xml
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2002-01-15 21:32:01 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2002-01-15 21:32:01 +0000
commit8d18f3d4a90124be837d4c086c2f5f04ee855c69 (patch)
treeb8d9057677a81d4131a55fd17e68f2761c4706a3 /chapter07/loadkeys.xml
parenteac0ee1d91c2e7552ae575bd254fbfc79be4cb45 (diff)
more updates to bootscripts
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1442 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07/loadkeys.xml')
-rw-r--r--chapter07/loadkeys.xml42
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 &gt; /etc/init.d/loadkeys &lt;&lt; "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&gt;/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>