X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F14locales;h=db26f0b12af7575b7890e294a1d89548fa84afda;hb=refs%2Ftags%2Fupstream%2F1.119.1;hp=3cb58dd4244de09ce34ab21f8c9a0216e18baa33;hpb=b0c0f013bca8a2e8ea61fddf4a6676ebb30b6d2b;p=live-boot-grml.git 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