summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/syscons
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-06-18 20:09:30 +0000
committergreen <green@FreeBSD.org>2004-06-18 20:09:30 +0000
commit989cfda158c14543d5d526bba866a112500966fd (patch)
treed3597c11e7c8a1207d3a9c9aaab26d577b919a56 /etc/rc.d/syscons
parent0ff326a04e63bd6dd822b26d19ced26341d0b3f7 (diff)
downloadFreeBSD-src-989cfda158c14543d5d526bba866a112500966fd.zip
FreeBSD-src-989cfda158c14543d5d526bba866a112500966fd.tar.gz
Allow setting the system console keyboard via the ${keyboard} rc.conf
directive.
Diffstat (limited to 'etc/rc.d/syscons')
-rw-r--r--etc/rc.d/syscons7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.d/syscons b/etc/rc.d/syscons
index 249421c..ac0144f 100644
--- a/etc/rc.d/syscons
+++ b/etc/rc.d/syscons
@@ -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
OpenPOWER on IntegriCloud