diff options
author | Tom Gundersen <teg@jklm.no> | 2011-08-05 00:33:10 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-08-05 00:33:10 +0200 |
commit | 4ef7a256acddfdd0cbb54e9018f0d8fadbc0cae1 (patch) | |
tree | 15f88c777f74a20631b62b9d5f144c2a4a7fc6a0 /rc.sysinit | |
parent | b94d35b9a2325d822dede0a72fca561f7a7daf7a (diff) |
locale: make /etc/profile.d/locale.sh dynamic
locale.sh parses rc.conf at runtime and sets the LOCALE accordingly,
rather than writing a static file at every boot.
This eliminates yet another write to /etc.
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -238,11 +238,6 @@ if [[ $HOSTNAME ]]; then echo "$HOSTNAME" >| /proc/sys/kernel/hostname && stat_done || stat_fail fi -# Flush old locale settings and set user defined locale -stat_busy "Setting Locale: ${LOCALE:=en_US}" - echo "export LANG=$LOCALE" > /etc/profile.d/locale.sh && -chmod 0755 /etc/profile.d/locale.sh && stat_done || stat_fail - if [[ ${LOCALE,,} =~ utf ]]; then stat_busy "Setting Consoles to UTF-8 mode" # UTF-8 consoles are default since 2.6.24 kernel |