Allow setting the system console keyboard via the ${keyboard} rc.conf

directive.
This commit is contained in:
green 2004-06-18 20:09:30 +00:00
parent 0ff326a04e
commit 989cfda158
2 changed files with 8 additions and 0 deletions

View File

@ -347,6 +347,7 @@ ip6addrctl_verbose="NO" # Set to YES to enable verbose configuration messages
### System console options #################################
##############################################################
keyboard="" # keyboard device to use (default /dev/kbd0).
keymap="NO" # keymap in /usr/share/syscons/keymaps/* (or NO).
keyrate="NO" # keyboard rate to: slow, normal, fast (or NO).
keybell="NO" # See kbdcontrol(1) for options. Use "off" to disable.

View File

@ -59,6 +59,13 @@ syscons_start()
{
echo -n 'Configuring syscons:'
# keyboard
#
if [ -n "${keyboard}" ]; then
echo -n ' keyboard'; kbdcontrol < ${kbddev} \
-k "${keyboard}" >/dev/null
fi
# keymap
#
case ${keymap} in