#!/bin/sh -e
#DEBHELPER#
case "$1" in
   remove|deconfigure)
      {
         update-alternatives --remove logout-manager /usr/bin/logout-manager-gtk
         update-alternatives --remove logout-manager /usr/bin/logout-manager-tcl
         update-alternatives --remove logout-manager /usr/bin/logout-manager-ncurses
      } | grep -vE 'update-alternatives:.*-(tcl|ncurses)' || :
      ;;
   upgrade|failed-upgrade)
      :
      ;;
esac