This trivial patch moves the start of the LOCALE status message to
before the first command. This should not make a difference, as all the
commands should be instantaneos, but might be helpful in case of a bug.

Signed-off-by: Tom Gundersen <[email protected]>
---
 rc.sysinit |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rc.sysinit b/rc.sysinit
index 9d7c250..8fa5b30 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -341,12 +341,12 @@ fi
 
 status "Updating Module Dependencies" /sbin/depmod -A
 
+[[ $LOCALE ]] || LOCALE="en_US"
+stat_busy "Setting Locale: $LOCALE"
 # Flush old locale settings
 : >| /etc/profile.d/locale.sh
 /bin/chmod 755 /etc/profile.d/locale.sh
 # Set user defined locale
-[[ $LOCALE ]] || LOCALE="en_US"
-stat_busy "Setting Locale: $LOCALE"
 echo "export LANG=$LOCALE" >>/etc/profile.d/locale.sh
 stat_done
 
-- 
1.7.4.2

Reply via email to