aboutsummaryrefslogtreecommitdiffstats
path: root/chapter07
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-08-06 11:00:11 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-08-06 11:00:11 +0000
commit2ea6929754f88fc50693ca23faa42947da93a863 (patch)
tree9b97712846120a878233c29c89b42d803d47c2db /chapter07
parentbd8f55ac2d88163198eeb17ebbdcdf1c18875a11 (diff)
Bug 43 and 47: keymap fix
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@906 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r--chapter07/loadkeys.xml42
1 files changed, 38 insertions, 4 deletions
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 @@
<sect1 id="ch07-loadkeys">
<title>Creating the loadkeys script</title>
+<!--
<para>You only need to create this script if you don't have a
-default 101 keys US keyboard layout. Create the
-<filename>/etc/init.d/loadkeys</filename> script by running the
-following command:</para>
+default 101 keys US keyboard layout.
+
+Because we've scrapped the symbolic link for the default, I assume
+that everyone will need this script?
+-->
+
+<para>Create the <filename>/etc/init.d/loadkeys</filename> script by
+running the following command:</para>
<para><screen><userinput>cat &gt; loadkeys &lt;&lt; "EOF"</userinput>
#!/bin/sh
@@ -17,15 +23,43 @@ following command:</para>
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&gt;/dev/null
+/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>
+
+<para><screen><userinput>cat &gt; /etc/sysconfig/keyboard &lt;&lt; "EOF"</userinput
+>
+# Begin /etc/sysconfig/keyboard
+
+LAYOUT=&lt;path-to-keymap&gt;
+
+# End /etc/sysconfig/keyboard
+<userinput>EOF</userinput></screen></para>
+
+<para>Replace <userinput>&lt;path-to-keymap&gt;</userinput> with the
+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>