aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-01-13 22:55:17 +0000
committerBill Nottingham <notting@redhat.com>2003-01-13 22:55:17 +0000
commitd97f4e6eeb0deaa3e2930af0080e1e031231347c (patch)
tree5bfa41d4d206de794e84b6694232914378d41dae /rc.d
parentd5382134f21c8b2ad8df0ac7e50e7bd460b7589e (diff)
downloadinitscripts-d97f4e6eeb0deaa3e2930af0080e1e031231347c.tar
initscripts-d97f4e6eeb0deaa3e2930af0080e1e031231347c.tar.gz
initscripts-d97f4e6eeb0deaa3e2930af0080e1e031231347c.tar.bz2
initscripts-d97f4e6eeb0deaa3e2930af0080e1e031231347c.tar.xz
initscripts-d97f4e6eeb0deaa3e2930af0080e1e031231347c.zip
move system font setting sooner
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit30
1 files changed, 14 insertions, 16 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 290c586c..62d63c21 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -34,6 +34,20 @@ if [ "$BOOTUP" = "graphical" ]; then
fi
fi
+if [ "`/sbin/consoletype`" = "vt" -a -x /sbin/setsysfont ]; then
+ for i in `grep '^[0-9]*.*respawn:/sbin/mingetty' /etc/inittab | sed 's/^.* tty//'`; do
+ > /dev/tty$i
+ done
+ echo -n "Setting default font ($SYSFONT): "
+ /sbin/setsysfont
+ if [ $? -eq 0 ]; then
+ success
+ else
+ failure
+ fi
+ echo ; echo
+fi
+
# Print a text banner.
echo -en $"\t\tWelcome to "
if grep -q "Red Hat" /etc/redhat-release ; then
@@ -141,22 +155,6 @@ if [ "`/sbin/consoletype`" = "vt" -a -x /bin/loadkeys ]; then
success $"Loading default keymap" || failure $"Loading default keymap"
echo
fi
-
- # Load system font
- if [ -x /sbin/setsysfont ]; then
- [ -f /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
- for i in 2 3 4 5 6; do
- > /dev/tty$i
- done
- case "$LANG" in
- *.utf8*|*.UTF-8*)
- action $"Setting default font ($SYSFONT): " /bin/unicode_start $SYSFONT
- ;;
- *)
- action $"Setting default font ($SYSFONT): " /sbin/setsysfont
- ;;
- esac
- fi
fi
# Set the hostname.