diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-24 21:14:44 +0200 |
---|---|---|
committer | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-06-24 21:14:44 +0200 |
commit | 0a71757f7eeb359293b72af8a1ae299953b865b2 (patch) | |
tree | 4e1da475643c70ea6ec4f6762abcd312eebff97d | |
parent | cd4b6dde21fde2a461dbbe42db649cc83fac303b (diff) | |
download | initscripts-0a71757f7eeb359293b72af8a1ae299953b865b2.tar.xz |
Simplify /etc/profile.d/locale.sh creation
-rwxr-xr-x | rc.sysinit | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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" |