X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F14locales;h=022a6056265ea1d4beba10f0fc49b817400ae57d;hb=d951dd4cb6eab8a83a4cc4ad52a09a9f58a74a06;hp=6348338c544b1987ee5290cb712f07a87d43a9e3;hpb=04a73543cd0a1c65f3ab69b2cce3b92557fd7521;p=live-boot-grml.git diff --git a/scripts/live-bottom/14locales b/scripts/live-bottom/14locales index 6348338..022a605 100755 --- a/scripts/live-bottom/14locales +++ b/scripts/live-bottom/14locales @@ -104,7 +104,10 @@ then if [ -d /root/etc/default/kdm.d/ ] then - printf 'LANGUAGE=%s\n' "${LANG}" >> /root/etc/default/kdm.d/live-autologin + if ! grep -qs "^LANGUAGE" "${LANG}" + then + printf 'LANGUAGE=%s\n' "${LANG}" >> /root/etc/default/kdm.d/live-autologin + fi elif [ -f /root/etc/kde3/kdm/kdmrc ] then sed -i -r -e "s/#Language=.*/Language=${language}/" \ @@ -113,8 +116,8 @@ then really_export LANG - printf 'LANG="%s"\n' "${LANG}" >> /root/etc/default/locale - printf 'LANG="%s"\n' "${LANG}" >> /root/etc/environment + printf 'LANG="%s"\n' "${LANG}" > /root/etc/default/locale + printf 'LANG="%s"\n' "${LANG}" > /root/etc/environment printf '%s %s\n' "${LANG}" "${codepage}" > /root/etc/locale.gen if [ -z "${SILENT}" ]