3 # console Load console font and keyboard table
7 # description: Loads the console font, the application-charset map \
8 # and the keyboard table.
10 # This must be executed *after* /usr is mounted.
11 # This means is /usr is NFS-mounted, it needs to
12 # run after networking and NFS mounts are up.
14 [ -f /etc/sysconfig/console ] || exit 0
16 [ -f /usr/bin/consolechars ] || exit 0
17 [ -f /usr/bin/loadkeys ] || exit 0
19 # Source function library
20 . /etc/rc.d/init.d/functions
24 . /etc/sysconfig/console
26 if [ "$SVGATEXTMODE" != "" ]
28 SVGATextMode $SVGATEXTMODE
30 if [ "$CONSOLEFONT" != "" ]
32 show Loading console font
34 consolechars -f $CONSOLEFONT > /dev/null 2>&1
36 # Don't use "" here because additional options may be
37 # specified after the font name (e.g. fallback tables)
39 if [ "$CONSOLEMAP" != "" ]
41 show Loading console map
43 consolechars -m $CONSOLEMAP > /dev/null 2>&1
46 if [ "$KEYTABLE" != "" ]
48 show Loading keyboard table
50 loadkeys $KEYTABLE > /dev/null 2>&1
61 echo "Usage: $0 {start|stop|status|restart}"