]> git.pld-linux.org Git - packages/console-tools.git/commitdiff
- extracted from console-init.tar.gz
authorpius <pius@pld-linux.org>
Thu, 22 Jul 1999 19:03:33 +0000 (19:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    console.init -> 1.1
    console.sysconfig -> 1.1

console.init [new file with mode: 0644]
console.sysconfig [new file with mode: 0644]

diff --git a/console.init b/console.init
new file mode 100644 (file)
index 0000000..10c7bd8
--- /dev/null
@@ -0,0 +1,65 @@
+#!/bin/bash
+#
+# console      Load console font and keyboard table
+#
+# chkconfig: 345 70 30
+#
+# description: Loads the console font, the application-charset map \
+#              and the keyboard table.
+
+# This must be executed *after* /usr is mounted.
+# This means is /usr is NFS-mounted, it needs to
+# run after networking and NFS mounts are up.
+
+[ -f /etc/sysconfig/console ] || exit 0
+
+[ -f /usr/bin/consolechars ] || exit 0
+[ -f /usr/bin/loadkeys ] || exit 0
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+case "$1" in
+       start|restart)
+               . /etc/sysconfig/console
+
+               if [ "$SVGATEXTMODE" != "" ]
+               then
+                       SVGATextMode $SVGATEXTMODE
+               fi
+               if [ "$CONSOLEFONT" != "" ]
+               then
+                       show Loading console font
+                       busy
+                       consolechars -f $CONSOLEFONT &>/dev/null
+                       deltext;ok
+                       # Don't use "" here because additional options may be
+                       # specified after the font name (e.g. fallback tables)
+               fi
+               if [ "$CONSOLEMAP" != "" ]
+               then
+                       show Loading console map
+                       busy
+                       consolechars -m $CONSOLEMAP &>/dev/null
+                       deltext;ok
+               fi
+               if [ "$KEYTABLE" != "" ]
+               then
+                       show Loading keyboard table
+                       busy
+                       loadkeys $KEYTABLE &>/dev/null
+                       deltext;ok
+               fi
+               ;;
+       stop)
+               # Nothing to stop
+               ;;
+       status)
+               # Nothing to report
+               ;;
+       *)
+               echo "Usage: $0 {start|stop|status|restart}"
+               exit 1
+esac
+
+exit 0
diff --git a/console.sysconfig b/console.sysconfig
new file mode 100644 (file)
index 0000000..794dbc5
--- /dev/null
@@ -0,0 +1,18 @@
+# SVGATextMode's mode (optional)
+SVGATEXTMODE=
+
+# Console font file name (usually from /usr/share/consolefonts dir). Determines
+# the set of available characters, the typeface and the number of character
+# lines on the screen. Other options may be specified after the font name,
+# e.g. -k a_fallback_table
+#CONSOLEFONT="iso2-16 -k qrczak"
+CONSOLEFONT="iso02grf"
+
+# Application-charset map file name (usually from /usr/share/consoletrans dir).
+# Determines the encoding used by the console when in single-byte (non-Unicode)
+# mode
+#CONSOLEMAP=iso02
+CONSOLEMAP=iso01
+
+# Keyboard table file name
+KEYTABLE=pl1
This page took 0.078437 seconds and 4 git commands to generate.