summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-10 15:10:30 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 17:31:06 +0100
commitbe2ffbd8c2fd7ea473666292c77be6786a00741c (patch)
treea0597050e08aaa1a2a36a03d0d356c048b59c79c /scripts
parent95892c748cb5bd18311935792715319a3ffe61ea (diff)
downloadlive-boot-be2ffbd8c2fd7ea473666292c77be6786a00741c.tar.gz
live-boot-be2ffbd8c2fd7ea473666292c77be6786a00741c.zip
Setting the kdm language, thanks to Jordi Pujol <jordi_pujol@telefonica.net>.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/live-bottom/14locales14
-rwxr-xr-xscripts/live-bottom/15autologin4
2 files changed, 17 insertions, 1 deletions
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."
diff --git a/scripts/live-bottom/15autologin b/scripts/live-bottom/15autologin
index 41c98dc..10cae2d 100755
--- a/scripts/live-bottom/15autologin
+++ b/scripts/live-bottom/15autologin
@@ -57,11 +57,13 @@ fi
if [ -d /root/etc/default/kdm.d/ ]
then
- cat > /root/etc/default/kdm.d/live-autologin << EOF
+
+cat >> /root/etc/default/kdm.d/live-autologin << EOF
AUTOLOGINUSER=${USERNAME}
AUTOLOGINAGAIN=true
AUTOLOGINDELAY=0
EOF
+
elif [ -f /root/etc/kde3/kdm/kdmrc ]
then
# Configure KDM autologin