aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 21:14:44 +0200
committerKurt J. Bosch <kjb-temp-2009@alpenjodel.de>2011-06-24 21:14:44 +0200
commit0a71757f7eeb359293b72af8a1ae299953b865b2 (patch)
tree4e1da475643c70ea6ec4f6762abcd312eebff97d /rc.sysinit
parentcd4b6dde21fde2a461dbbe42db649cc83fac303b (diff)
downloadinitscripts-0a71757f7eeb359293b72af8a1ae299953b865b2.tar.xz
Simplify /etc/profile.d/locale.sh creation
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit9
1 files changed, 3 insertions, 6 deletions
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"