summaryrefslogtreecommitdiff
path: root/scripts/live-bottom/14locales
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-03-09 21:27:25 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:06 +0100
commitf2ac76aedcba41e749082a2fb77eec4175e7a6e9 (patch)
treee8616af65f150b74b8044fef56ead6dca23e261c /scripts/live-bottom/14locales
parent4dafd2894df6f093d5350bd6ec0a0c650aa04ad3 (diff)
downloadlive-boot-f2ac76aedcba41e749082a2fb77eec4175e7a6e9.tar.gz
live-boot-f2ac76aedcba41e749082a2fb77eec4175e7a6e9.zip
Merging casper 1.119.
Diffstat (limited to 'scripts/live-bottom/14locales')
-rwxr-xr-xscripts/live-bottom/14locales5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/live-bottom/14locales b/scripts/live-bottom/14locales
index 3cb58dd..db26f0b 100755
--- a/scripts/live-bottom/14locales
+++ b/scripts/live-bottom/14locales
@@ -44,8 +44,6 @@ if [ -n "${grep_file}" ]
then
# use rootfs configured locale
locale=$(grep -s 'LANG=' ${grep_file} | sed s/'LANG='// | tr -d '"' )
-else
- grep_file=/root/etc/default/locale
fi
if [ -n "${LOCALE}" ]
@@ -102,7 +100,8 @@ EOF
really_export LANG
- printf 'LANG=%s\n' "${LANG}" > "${grep_file}"
+ printf 'LANG="%s"\n' "${LANG}" >> /root/etc/default/locale
+ printf 'LANG="%s"\n' "${LANG}" >> /root/etc/environment
printf '%s UTF-8\n' "${LANG}" > /root/etc/locale.gen
chroot /root /usr/sbin/locale-gen
fi