diff options
-rwxr-xr-x | rc.d/rc.sysinit | 30 |
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. |