Add function keys change setup

This commit is contained in:
Andrey A. Chernov 1995-03-30 00:01:09 +00:00
parent bb34201c6a
commit 0d58dfe47d
2 changed files with 20 additions and 3 deletions

16
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.57 1995/03/29 03:35:10 jkh Exp $
# $Id: rc,v 1.58 1995/03/29 03:42:16 jkh Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -118,7 +118,8 @@ fi
######################### Start Of Syscons Section #######################
kbdadjust=NO
[ "X${keymap}" != X"NO" -o "X${keyrate}" != X"NO" ] && kbdadjust=YES
[ "X${keymap}" != X"NO" -o "X${keyrate}" != X"NO" \
-o "X${keychange}" != X"NO" ] && kbdadjust=YES
vidadjust=NO
[ "X${scrnmap}" != X"NO" -o "X${font8x16}" != X"NO" -o \
"X${font8x14}" != X"NO" -o "X${font8x8}" != X"NO" -o \
@ -141,6 +142,17 @@ if [ "X${keyrate}" != X"NO" ]; then
kbdcontrol -r ${keyrate}
fi
# change function keys
if [ "X${keychange}" != X"NO" ]; then
echo -n " keychange"
set - ${keychange}
while [ $# -gt 0 ]
do
kbdcontrol -f "$1" "$2"
shift; shift
done
fi
[ "X${kbdadjust}" != X"NO" ] && echo
[ "X${vidadjust}" != X"NO" ] && echo -n " vidcontrol:"

View File

@ -4,7 +4,7 @@
# This is sysconfig - a file full of useful variables that you can set
# to change the default startup behavior of your system.
#
# $Id: sysconfig,v 1.6 1995/03/24 00:01:21 jkh Exp $
# $Id: sysconfig,v 1.7 1995/03/24 00:16:26 jkh Exp $
######################### Start Of Syscons Section #######################
@ -14,6 +14,10 @@ keymap=NO
# Set keyboard rate to: slow, normal, fast or NO if default.
keyrate=NO
# Change function keys default values (or no change if NO)
# Syntax: "<funkey_number> <new_value> [<funkey_number> <new_value>]..."
keychange=NO
# Choose screen map from /usr/share/syscons/scrnmaps/* (or NO for none)
scrnmap=NO
@ -37,6 +41,7 @@ saver=NO
#
# keymap=ru.koi8-r
# keyrate=fast
# keychange="61 "
# scrnmap=koi8-r2cp866
# font8x16=cp866b-8x16
# font8x14=cp866-8x14