Allow setting the system console keyboard via the ${keyboard} rc.conf
directive.
This commit is contained in:
parent
0ff326a04e
commit
989cfda158
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user