aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-06-15 21:12:44 +0000
committerBill Nottingham <notting@redhat.com>1999-06-15 21:12:44 +0000
commit05e38c0c8ac239696bbc4f0dda1b12ecf29f4e85 (patch)
tree08a2f41baae0588a55a228137a448307508b456b /rc.d/rc.sysinit
parent10e7bcacf0e5dbf1f114a9c97335736168fb3dca (diff)
downloadinitscripts-05e38c0c8ac239696bbc4f0dda1b12ecf29f4e85.tar
initscripts-05e38c0c8ac239696bbc4f0dda1b12ecf29f4e85.tar.gz
initscripts-05e38c0c8ac239696bbc4f0dda1b12ecf29f4e85.tar.bz2
initscripts-05e38c0c8ac239696bbc4f0dda1b12ecf29f4e85.tar.xz
initscripts-05e38c0c8ac239696bbc4f0dda1b12ecf29f4e85.zip
make setsysfont call smarter
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit7
1 files changed, 5 insertions, 2 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 2be5f6fe..419e76dc 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -47,8 +47,11 @@ if [ -n "$KEYMAP" ]; then
fi
# Load system font
-if [ -x /sbin/setsysfont ]; then
- action "Setting default font" /sbin/setsysfont
+if [ -x /sbin/setsysfont ]
+ . /etc/sysconfig/i18n
+ if [ -f /etc/sysconfig/console/$SYSFONT.psf.gz -o -f /usr/lib/kbd/consolefonts/$SYSFONT.psf.gz ]; then
+ action "Setting default font" /sbin/setsysfont
+ fi
fi
# Start up swapping.