#!/bin/sh
set -e

case "$1" in
    install)
        ;;
    upgrade)
        # in version > 0.3.3, prefix is 01- everywhere
        if dpkg --compare-versions "$2" le 0.3.3 ; then
            rm -f /etc/dconf/db/gdm.d/02-logo
            rm -f /etc/dconf/db/gdm.d/03-smartcard
        fi
        ;;
    abort-upgrade)
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 0
        ;;
esac

#DEBHELPER#

exit 0
