loadkeys.xml 692 B

1234567891011121314151617181920212223242526272829303132333435
  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. <literallayout>
  10. <userinput>cat &gt; loadkeys &lt;&lt; "EOF"</userinput>
  11. #!/bin/sh
  12. # Begin /etc/init.d/loadkeys
  13. #
  14. # Include the functions declared in the /etc/init.d/functions file
  15. #
  16. source /etc/init.d/functions
  17. #
  18. # Load the default keymap file
  19. #
  20. echo -n "Loading keymap..."
  21. /bin/loadkeys -d 2&gt;/dev/null
  22. evaluate_retval
  23. # End /etc/init.d/loadkeys
  24. <userinput>EOF</userinput>
  25. </literallayout>
  26. </sect1>