2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch07-loadkeys">
|
|
|
|
<title>Creating the loadkeys script</title>
|
|
|
|
|
2001-08-05 08:26:23 +01:00
|
|
|
<para>You only need to create this script if you don't have a
|
2001-07-22 20:45:10 +01:00
|
|
|
default 101 keys US keyboard layout. Create the
|
2001-07-16 18:17:16 +01:00
|
|
|
<filename>/etc/init.d/loadkeys</filename> script by running the
|
2001-07-22 20:45:10 +01:00
|
|
|
following command:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>cat > loadkeys << "EOF"</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Begin /etc/init.d/loadkeys
|
|
|
|
|
|
|
|
#
|
|
|
|
# Include the functions declared in the /etc/init.d/functions file
|
|
|
|
#
|
|
|
|
|
|
|
|
source /etc/init.d/functions
|
|
|
|
|
|
|
|
#
|
|
|
|
# Load the default keymap file
|
|
|
|
#
|
|
|
|
|
|
|
|
echo -n "Loading keymap..."
|
2001-06-20 04:32:36 +01:00
|
|
|
/bin/loadkeys -d 2>/dev/null
|
2001-01-24 00:31:17 +00:00
|
|
|
evaluate_retval
|
|
|
|
|
|
|
|
# End /etc/init.d/loadkeys
|
2001-07-22 20:45:10 +01:00
|
|
|
<userinput>EOF</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|