1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/kbd/kbd.init
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # Desc: Keyboard setup
13 # Runlevel: 05 rcX rc2 rc3 rc4 rc5
17 block_begin(start, `Setting keyboard mapping')
18 if [ -L /etc/default.keymap ] ; then
19 mapfile=$(readlink /etc/default.keymap)
20 check(`loadkeys $mapfile')
21 elif [ -f /etc/default.keymap ] ; then
22 check(`loadkeys /etc/default.keymap')
24 echo "No /etc/default.keymap found."
27 block_split(`Setting keyboard repeat rate and delay time')
28 [ -f /etc/conf/kbd ] && . /etc/conf/kbd
29 if [ "$kbd_rate" -a "$kbd_delay" ]; then
30 check(`D_prefix/bin/kbdrate -r $kbd_rate -d $kbd_delay < /dev/console')
34 block_begin(stop, `Flushing keyboard mapping')