xbps-casper: some fixes for lightdm.

This commit is contained in:
Juan RP 2011-02-16 19:23:10 +01:00
parent a615ed950f
commit 514e352119
4 changed files with 22 additions and 5 deletions

View File

@ -35,9 +35,9 @@ if [ "${set_keymap}" ]; then
"${rootmnt}/etc/conf.d/keymaps"
fi
if [ -f "${rootmnt}/etc/hal/fdi/policy/10-keymap.fdi" ]; then
sed -i -e "s|>us<|>${keymap}<|" \
${rootmnt}/etc/hal/fdi/policy/10-keymap.fdi
# Setup keymap for lightdm.
if [ -r "${rootmnt}/etc/lightdm.conf" ]; then
sed -i -e "s|^\#\(layout=\).*|\1${keymap}|" ${rootmnt}/etc/lightdm.conf
fi
log_end_msg

View File

@ -34,4 +34,10 @@ if [ "${set_locale}" ]; then
echo "system_locale=\"$locale\"" > ${rootmnt}/etc/conf.d/locale
fi
# Setup language in lightdm.
if [ -r "${rootmnt}/etc/lightdm.conf" ]; then
sed -i -e "s|^\#\(language=\).*|\1${locale}.utf8|" \
${rootmnt}/etc/lightdm.conf
fi
log_end_msg

View File

@ -25,8 +25,8 @@ if [ -f "${rootmnt}/etc/inittab" ]; then
sed -i -e "s|agetty|casper-getty|g" "${rootmnt}/etc/inittab"
fi
# Configure GDM autologin
if [ -d /root/etc/gdm ]; then
# Configure GDM autologin
GDMCustomFile=/root/etc/gdm/custom.conf
AutologinParameters="AutomaticLoginEnable=true\n\
AutomaticLogin=$USERNAME\n\
@ -42,5 +42,16 @@ TimedLoginDelay=10"
sed -i "s/\[daemon\]/\[daemon\]\n$AutologinParameters/" $GDMCustomFile
fi
fi
# Configure lightdm autologin. Autologin doesn't seem to work
# with lightdm-0.2.3, will be enabled when it's fixed.
log_end_msg
exit 0
if [ -r /root/etc/lightdm.conf ]; then
sed -i -e "s|^\#\(default-user=\).*|\1$USERNAME|" \
/root/etc/lightdm.conf
sed -i -e "s|^\#\(default-user-timeout=\).*|\10|" \
/root/etc/lightdm.conf
fi
log_end_msg

View File

@ -1,6 +1,6 @@
# Template file for 'xbps-casper'
pkgname=xbps-casper
_localver=0.7 # XBPS package version
_localver=0.8 # XBPS package version
_distver=1.236 # This should match the upstream (Ubuntu) version
version=${_localver}.${_distver}
build_style=custom-install