Linux keytable
This script is used to load the appropriate keymap in the system according to the /etc/sysconfig/keyboard file. This script also loads the system font with the /sbin/setsysfont script. The setsysfont script uses the contents of the file /etc/sysconfig/i18n. These scripts do not run any daemon programs. My /etc/sysconfig/keyboard file:
KEYTABLE="us"
My /etc/sysconfig/i18n file:
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en_US"
The /sbin/setsysfont script
#!/bin/sh
PATH=/bin:/usr/bin
if [ -f /etc/sysconfig/i18n ]; then
. /etc/sysconfig/i18n
fi
if [ -x /bin/consolechars -o -x /usr/bin/consolechars ]; then
if [ -n "$SYSFONT" ]; then
ARGS=$SYSFONT
if [ -n "$UNIMAP" ]; then
ARGS="$ARGS --sfm $UNIMAP"
fi
if [ -n "$SYSFONTACM" ]; then
ARGS="$ARGS --acm $SYSFONTACM"
fi
consolechars -f $ARGS
fi
elif [ -x /usr/bin/setfont ]; then
if [ -n "$SYSFONT" -a -n "$UNIMAP" ]; then
/usr/bin/setfont $SYSFONT -u $UNIMAP
elif [ -n "$SYSFONT" ]; then
/usr/bin/setfont $SYSFONT
# else
# /usr/bin/setfont
fi
else
echo "can't set font"
exit 1
fi
exit 0
|