From 936f71ddbcdab97583d72235011bedfc3b8b132e Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Tue, 17 Jul 2007 15:14:37 +0000 Subject: avoid calling unicode_start unnecessarily often during startup/shutdown which causes certain monitor/video card combos to flicker heavily (#237839) --- rc.d/rc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'rc.d/rc') diff --git a/rc.d/rc b/rc.d/rc index d42074e0..0dcaefd9 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -42,6 +42,13 @@ fi # Is there an rc directory for this new runlevel? [ -d /etc/rc$runlevel.d ] || exit 0 +# Set language, vc settings once to avoid doing it for every init script +# through functions +if [ -f /etc/sysconfig/i18n -a -z "${NOLOCALE:-}" ] ; then + . /etc/profile.d/lang.sh + export LANGSH_SOURCED=1 +fi + # First, run the KILL scripts. for i in /etc/rc$runlevel.d/K* ; do check_runlevel "$i" || continue -- cgit v1.2.1