From 3c3005df454f65d89d8de2f6835435167362a47c Mon Sep 17 00:00:00 2001
From: dd
Date: Sat, 28 Apr 2001 20:56:53 +0000
Subject: [PATCH] Add an allscreens_kbdflags option. Same thing as
allscreens_flags, but runs kbdcontrol instead of vidcontrol.
Reviewed by: ru
---
etc/defaults/rc.conf | 1 +
etc/rc.d/syscons | 9 +++++++++
etc/rc.syscons | 9 +++++++++
3 files changed, 19 insertions(+)
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 81f38487a7a4..6f38f710bb8a 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -297,6 +297,7 @@ mousechar_start="NO" # if 0xd0-0xd3 default range is occuped in your
# language code table, specify alternative range
# start like mousechar_start=3, see vidcontrol(1)
allscreens_flags="" # Set this vidcontrol mode for all virtual screens
+allscreens_kbdflags="" # Set this kbdcontrol mode for all virtual screens
##############################################################
diff --git a/etc/rc.d/syscons b/etc/rc.d/syscons
index cb69a262eff5..f8c5c6cd814a 100644
--- a/etc/rc.d/syscons
+++ b/etc/rc.d/syscons
@@ -180,4 +180,13 @@ if [ -n "${allscreens_flags}" ]; then
done
fi
+# set this keyboard more for all virtual terminals
+#
+if [ -n "${allscreens_kbdflags}" ]; then
+ echo -n ' allscreens_kbd'
+ for ttyv in /dev/ttyv*; do
+ kbdcontrol ${allscreens_kbdflags} < ${ttyv} > ${ttyv} 2>&1
+ done
+fi
+
echo '.'
diff --git a/etc/rc.syscons b/etc/rc.syscons
index cb69a262eff5..f8c5c6cd814a 100644
--- a/etc/rc.syscons
+++ b/etc/rc.syscons
@@ -180,4 +180,13 @@ if [ -n "${allscreens_flags}" ]; then
done
fi
+# set this keyboard more for all virtual terminals
+#
+if [ -n "${allscreens_kbdflags}" ]; then
+ echo -n ' allscreens_kbd'
+ for ttyv in /dev/ttyv*; do
+ kbdcontrol ${allscreens_kbdflags} < ${ttyv} > ${ttyv} 2>&1
+ done
+fi
+
echo '.'