# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/kbd/kbd.init # Copyright (C) 2004 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- # # Desc: Keyboard setup # Runlevel: 05 rcX rc2 rc3 rc4 rc5 # main_begin block_begin(start, `Setting keyboard mapping') if [ -L /etc/default.keymap ]; then mapfile=$(readlink /etc/default.keymap) check(`loadkeys $mapfile') elif [ -f /etc/default.keymap ]; then check(`loadkeys /etc/default.keymap') else echo "No /etc/default.keymap found." fi dnl block_split(`Setting keyboard repeat rate and delay time') [ -f /etc/conf/kbd ] && . /etc/conf/kbd if [ "$kbd_rate" -a "$kbd_delay" ]; then check(`D_bindir/kbdrate -r $kbd_rate -d $kbd_delay < /dev/console') fi block_end block_begin(stop, `Flushing keyboard mapping') block_end main_end