From 0a71757f7eeb359293b72af8a1ae299953b865b2 Mon Sep 17 00:00:00 2001 From: "Kurt J. Bosch" Date: Fri, 24 Jun 2011 21:14:44 +0200 Subject: Simplify /etc/profile.d/locale.sh creation --- rc.sysinit | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'rc.sysinit') diff --git a/rc.sysinit b/rc.sysinit index c0a35df..01f83f0 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -231,12 +231,9 @@ stat_done status "Setting Hostname: $HOSTNAME" \ eval 'echo "$HOSTNAME" > /proc/sys/kernel/hostname' -stat_busy "Setting Locale: ${LOCALE:=en_US}" - # Flush old locale settings - install -Tm 0755 <(:) /etc/profile.d/locale.sh - # Set user defined locale - echo "export LANG=$LOCALE" >>/etc/profile.d/locale.sh -stat_done +# Flush old locale settings and set user defined locale +status "Setting Locale: ${LOCALE:=en_US}" \ + install -Tm 0755 <(echo "export LANG=$LOCALE") /etc/profile.d/locale.sh if [[ ${LOCALE,,} =~ utf ]]; then stat_busy "Setting Consoles to UTF-8 mode" -- cgit v1.2.3