X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F14locales;h=3cb58dd4244de09ce34ab21f8c9a0216e18baa33;hb=refs%2Ftags%2Fupstream%2F1.110.5;hp=3653e1b163a78c88c727dd161a86d6574e6104d9;hpb=482099e5a39fa3f8eec108a4e26182647c8cb4d6;p=live-boot-grml.git diff --git a/scripts/live-bottom/14locales b/scripts/live-bottom/14locales index 3653e1b..3cb58dd 100755 --- a/scripts/live-bottom/14locales +++ b/scripts/live-bottom/14locales @@ -79,6 +79,20 @@ then LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 | sed -e 's, .*,,' -e q) + language="${LANG%%.UTF-8*}" + if [ -d /root/etc/default/kdm.d/ ] + then + +cat > /root/etc/default/kdm.d/live-autologin << EOF +LANGUAGE=${language} +EOF + + elif [ -f /root/etc/kde3/kdm/kdmrc ] + then + sed -i -r -e "s/#Language=.*/Language=${language}/" \ + /root/etc/kde3/kdm/kdmrc + fi + if [ -z "${LANG}" ] then log_warning_message "Locale ${locale} is unsupported."