[arch-projects] [PATCH 01/10] status: synchronise the status message

Tom Gundersen teg at jklm.no
Wed Mar 30 14:01:22 EDT 2011


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 <teg at jklm.no>
---
 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



More information about the arch-projects mailing list