loadkeys.xml 693 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <sect1 id="ch07-loadkeys">
  2. <title>Creating the loadkeys script</title>
  3. <para>
  4. A user only needs to create this script if he don't have a default 101 keys
  5. US keyboard layout. A new file
  6. <filename>/etc/init.d/loadkeys</filename> containing the following has to be
  7. created:
  8. </para>
  9. <para>
  10. <screen>
  11. <userinput>cat &gt; loadkeys &lt;&lt; "EOF"</userinput>
  12. #!/bin/sh
  13. # Begin /etc/init.d/loadkeys
  14. #
  15. # Include the functions declared in the /etc/init.d/functions file
  16. #
  17. source /etc/init.d/functions
  18. #
  19. # Load the default keymap file
  20. #
  21. echo -n "Loading keymap..."
  22. /bin/loadkeys -d 2&gt;/dev/null
  23. evaluate_retval
  24. # End /etc/init.d/loadkeys
  25. <userinput>EOF</userinput>
  26. </screen>
  27. </para>
  28. </sect1>