2010-02-14 12:31:48 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2010-10-03 15:57:35 +02:00
|
|
|
# Remove alternative file if it's not a symlink, workaround for broken upgrade
|
|
|
|
# See bug #625485
|
2010-11-09 22:52:59 +01:00
|
|
|
if [ -f /etc/alternatives/lxdm.conf ] ; then
|
|
|
|
if [ ! -h "/etc/alternatives/lxdm.conf" ] ; then
|
|
|
|
rm -f "/etc/alternatives/lxdm.conf"
|
|
|
|
fi
|
2010-10-03 15:57:35 +02:00
|
|
|
fi
|
|
|
|
|
2011-11-07 11:23:34 +01:00
|
|
|
if [ "$1" = "configure" ] ; then
|
2010-02-14 12:31:48 +01:00
|
|
|
update-alternatives --install /etc/lxdm/default.conf \
|
|
|
|
lxdm.conf /etc/xdg/lubuntu/lxdm/lxdm.conf 60
|
2011-11-07 11:23:34 +01:00
|
|
|
update-alternatives --install /etc/lightdm/lightdm-gtk-greeter.conf \
|
|
|
|
lightdm-gtk-greeter-config-derivative \
|
|
|
|
/etc/xdg/lubuntu/lightdm/lightdm-gtk-greeter.conf 30
|
2010-02-14 12:31:48 +01:00
|
|
|
fi
|
|
|
|
|
2011-08-16 20:22:51 +02:00
|
|
|
case "$1" in
|
|
|
|
configure|upgrade)
|
|
|
|
if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then
|
|
|
|
/usr/lib/lightdm/lightdm-set-defaults --keep-old --session=Lubuntu || true
|
|
|
|
/usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-gtk-greeter || true
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2011-08-16 01:15:24 +02:00
|
|
|
|
2010-02-14 12:31:48 +01:00
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|