aboutsummaryrefslogtreecommitdiffstats
path: root/setsysfont
diff options
context:
space:
mode:
authorDonnie Barnes <djb@redhat.com>1998-05-06 19:42:47 +0000
committerDonnie Barnes <djb@redhat.com>1998-05-06 19:42:47 +0000
commit7b4a21a11670afafee8f2699a61f92f861f711c3 (patch)
tree12f5486c63be77392440da3c1413bfdc0114cbe9 /setsysfont
parent12b8b6b479d757bd40696aaeaffc750bf15ee165 (diff)
downloadinitscripts-7b4a21a11670afafee8f2699a61f92f861f711c3.tar
initscripts-7b4a21a11670afafee8f2699a61f92f861f711c3.tar.gz
initscripts-7b4a21a11670afafee8f2699a61f92f861f711c3.tar.bz2
initscripts-7b4a21a11670afafee8f2699a61f92f861f711c3.tar.xz
initscripts-7b4a21a11670afafee8f2699a61f92f861f711c3.zip
added setsysfont
Diffstat (limited to 'setsysfont')
-rwxr-xr-xsetsysfont18
1 files changed, 18 insertions, 0 deletions
diff --git a/setsysfont b/setsysfont
new file mode 100755
index 00000000..7dfdda8f
--- /dev/null
+++ b/setsysfont
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+if [ -f /etc/sysconfig/i18n ]; then
+ . /etc/sysconfig/i18n
+fi
+
+if [ -x /usr/bin/setfont ]; then
+
+ if [ -n "$SYSFONT" ]; then
+ /usr/bin/setfont $SYSFONT
+ else
+ /usr/bin/setfont default8x16
+ fi
+
+else
+ echo "can't set font"
+ exit 1
+fi