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
|
|
|
|
|
2010-02-14 12:31:48 +01:00
|
|
|
if [ "$1" = configure ]; then
|
|
|
|
update-alternatives --install /etc/lxdm/default.conf \
|
|
|
|
lxdm.conf /etc/xdg/lubuntu/lxdm/lxdm.conf 60
|
|
|
|
fi
|
|
|
|
|
2011-08-16 01:15:24 +02:00
|
|
|
if [ "$1" = configure|upgrade ]; then
|
|
|
|
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
|
|
|
|
fi
|
|
|
|
|
2010-12-05 22:15:53 +01:00
|
|
|
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
|
2010-12-06 00:15:18 +01:00
|
|
|
dpkg-maintscript-helper mv_conffile /etc/xdg/pcmanfm/lubuntu.conf /etc/xdg/pcmanfm/lubuntu/pcmanfm.conf 0.15 -- "$@"
|
2010-12-05 22:15:53 +01:00
|
|
|
fi
|
|
|
|
|
2010-02-14 12:31:48 +01:00
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|