aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorFlorian La Roche <laroche@redhat.com>2002-07-10 18:19:40 +0000
committerFlorian La Roche <laroche@redhat.com>2002-07-10 18:19:40 +0000
commitd9d075c580f39e3b6597ff65723845939e9880dc (patch)
treeb442c0718a61f3a4d31e1599e2bbe35d4a0b8fe0 /rc.d/rc.sysinit
parent79d81b12ba74f837ba95aa56c8d0e46030426ee7 (diff)
downloadinitscripts-d9d075c580f39e3b6597ff65723845939e9880dc.tar
initscripts-d9d075c580f39e3b6597ff65723845939e9880dc.tar.gz
initscripts-d9d075c580f39e3b6597ff65723845939e9880dc.tar.bz2
initscripts-d9d075c580f39e3b6597ff65723845939e9880dc.tar.xz
initscripts-d9d075c580f39e3b6597ff65723845939e9880dc.zip
- cleanup, no real changes
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit15
1 files changed, 6 insertions, 9 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 115e61e9..f1a09764 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -108,9 +108,7 @@ esac
action $"Setting clock $CLOCKDEF: `date`" date
-if [ "`/sbin/consoletype`" = "vt" ]; then
- # Load keymap
- if [ -x /bin/loadkeys ]; then
+if [ "`/sbin/consoletype`" = "vt" -a -x /bin/loadkeys ]; then
KEYTABLE=
KEYMAP=
if [ -f /etc/sysconfig/console/default.kmap ]; then
@@ -133,18 +131,17 @@ if [ "`/sbin/consoletype`" = "vt" ]; then
loadkeys $KEYMAP < /dev/tty0 > /dev/tty0 2>/dev/null && \
success $"Loading default keymap" || failure $"Loading default keymap"
echo
- fi
fi
# Load system font
if [ -x /sbin/setsysfont ]; then
[ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
- case $LANG in
- *.utf8|*.UTF-8)
- action $"Setting default font ($SYSFONT): " /bin/unicode_start $SYSFONT
+ case "$LANG" in
+ *.utf8|*.UTF-8)
+ action $"Setting default font ($SYSFONT): " /bin/unicode_start $SYSFONT
;;
- *)
- action $"Setting default font ($SYSFONT): " /sbin/setsysfont
+ *)
+ action $"Setting default font ($SYSFONT): " /sbin/setsysfont
;;
esac
fi