aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2000-12-11 23:08:21 +0000
committerBill Nottingham <notting@redhat.com>2000-12-11 23:08:21 +0000
commit760baa8339c445c9f6d0afe0298d7312628b15a5 (patch)
tree9602acc7503493e81641faa6996eaee1ed89abd9 /rc.d
parent1359492b407a9dec8f18f59e412f1d571db39827 (diff)
downloadinitscripts-760baa8339c445c9f6d0afe0298d7312628b15a5.tar
initscripts-760baa8339c445c9f6d0afe0298d7312628b15a5.tar.gz
initscripts-760baa8339c445c9f6d0afe0298d7312628b15a5.tar.bz2
initscripts-760baa8339c445c9f6d0afe0298d7312628b15a5.tar.xz
initscripts-760baa8339c445c9f6d0afe0298d7312628b15a5.zip
don't try and load fonts and keymaps on a serial console. Duh.
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit12
1 files changed, 7 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index daba96dd..ba8943e0 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -103,8 +103,9 @@ esac
action "Setting clock $CLOCKDEF: `date`" date
-# Load keymap
-if [ -x /bin/loadkeys ]; then
+if [ "'/sbin/consoletype'" == "vt" ]; then
+ # Load keymap
+ if [ -x /bin/loadkeys ]; then
KEYTABLE=
KEYMAP=
if [ -f /etc/sysconfig/console/default.kmap ]; then
@@ -128,10 +129,10 @@ if [ -x /bin/loadkeys ]; then
success "Loading default keymap" || failure "Loading default keymap"
echo
fi
-fi
+ fi
-# Load system font
-if [ -x /sbin/setsysfont ]; then
+ # Load system font
+ if [ -x /sbin/setsysfont ]; then
[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
if [ -f /etc/sysconfig/console/$SYSFONT.psf.gz -o \
-f /usr/lib/kbd/consolefonts/$SYSFONT.psf.gz -o \
@@ -139,6 +140,7 @@ if [ -x /sbin/setsysfont ]; then
-f /usr/lib/kbd/consolefonts/$SYSFONT.gz ]; then
action "Setting default font ($SYSFONT): " /sbin/setsysfont
fi
+ fi
fi
# Start up swapping.