#! /bin/sh

. "`dirname $0`/rcdefs"

Print -n "Configuring the keyboard... "

PATH=${PATH_SYS}

# Set keyboard LEDs and cursor.
for t in 1 2 3 4 5 6; do
  setleds -D -scroll -caps +num < /dev/tty$t > /dev/null
  [ -n ${CURSOR_DEFS} ] && \
    cursor ${CURSOR_DEFS} > /dev/tty$t
done

# Make the changes visible.
setleds -L

# The optimal keymap.
[ -n "${KEYMAP}" ] && loadkeys ${KEYMAP} > /dev/null 2>&1

# Fix of the backspace key.
echo "keycode 14 = BackSpace" | loadkeys

Print "done."
