prerm is in mythbuntu-lightdm-theme 1.01.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #! /bin/sh
rm_non_conffile() {
    NEW_CONFFILE=$1
    OLD_CONFFILE=$2
    [ -e "$NEW_CONFFILE" ] || return 0
    [ -e "$OLD_CONFFILE" ] || return 0
    local new_md5sum="$(md5sum $NEW_CONFFILE | sed -e 's/ .*//')"
    local old_md5sum="$(md5sum $OLD_CONFFILE | sed -e 's/ .*//')"
    if [ "$new_md5sum" = "$old_md5sum" ]; then
        rm -f "$NEW_CONFFILE"
    fi
}
set -e
case "$1" in
  remove|purge)
    rm_non_conffile /etc/lightdm/lightdm.conf /usr/share/mythbuntu/lightdm/lightdm.conf
    ;;
esac
if [ "$1" = "remove" ] ; then
  update-alternatives --remove lightdm-gtk-greeter-config-derivative \
    /etc/lightdm/mythbuntu-lightdm-gtk-greeter.conf
fi
 |