#! /bin/sh -e

#DEBHELPER#

case "$1" in
    install|upgrade)
	if [ -n "$2" ] && dpkg --compare-versions "$2" lt "1.2.21+1.2.22pre1-1"
  then
      # remove known deprecated stuff
      md5sum /etc/gdm/Sessions/IceWM* 2>/dev/null | \
      while read sum file ; do \
         case $sum in d86142d41ded68895123a8f3faf0e8d6|\
            3a803b511c1a62cfb6788d253b6fc2eb|b8e153b68ed4c0a4ce6e0d55f2e12448|\
            9b8c9c0b308cf3b5751d7740e62caf59|4d3c84fa5c7254f18c669f6f5d86fb71|\
            243467a510c14fbb42291e7f6bb1d57e|f2ea8361ffe954fe429acb48362e1743|\
            84ff63904692c206bddf2254445a6523) rm $file 
            ;;
         esac ; 
      done
  fi
  ;;
  
esac

exit 0
