xbps-casper: some fixes for lightdm.
This commit is contained in:
parent
a615ed950f
commit
514e352119
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue