#!/bin/sh PREFIX=${PKG_PREFIX-/usr/local} case $2 in DEINSTALL) if grep -Fxq "greeter-session=slick-greeter" ${PREFIX}/etc/lightdm/lightdm.conf then echo ":: Removing greeter configuration in ${PREFIX}/etc/lightdm/lightdm.conf" echo ":: Configure another greeter if you plan to keep using lightdm." /usr/bin/sed -i ".bak" "s/^greeter-session=slick-greeter$/#greeter-session=example-gtk-gnome/g" \ ${PREFIX}/etc/lightdm/lightdm.conf else echo ":: slick-greeter is not the configured greeter in ${PREFIX}/etc/lightdm/lightdm.conf" echo ":: Leaving the lightdm greeter configuration unchanged." fi echo ":: $(grep greeter-session= ${PREFIX}/etc/lightdm/lightdm.conf)" ;; esac