OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

  1. #!/bin/sh
  2. #
  3. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  4. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  5. #
  6. # T2 SDE: package/.../kbd/kbd.init
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. #
  17. # Desc: Keyboard setup
  18. # Runlevel: 05 rcX rc1 rc2 rc3 rc4 rc5
  19. #
  20. main_begin
  21. block_begin(start, `Setting keyboard keymappings.')
  22. if [ -L /etc/default.keymap ] ; then
  23. mapfile=$(ls -l /etc/default.keymap | sed 's,.* -> ,,')
  24. check(`loadkeys $mapfile')
  25. elif [ -f /etc/default.keymap ] ; then
  26. check(`loadkeys /etc/default.keymap')
  27. else
  28. echo "No /etc/default.keymap found."
  29. fi
  30. dnl
  31. block_split(`Setting keyboard repeat rate and delay time.')
  32. kbd_rate=30; kbd_delay=250
  33. [ -f /etc/conf/kbd ] && . /etc/conf/kbd
  34. check(`D_prefix/bin/kbdrate -r $kbd_rate -d $kbd_delay < /dev/console')
  35. block_end
  36. block_begin(stop, `Flushing keyboard keymappings.')
  37. block_end
  38. main_end