#!/bin/sh
set -e

PACKAGE=wmanager
INST="/etc/menu-methods/$PACKAGE"

case "$1" in
    remove)
        if [ -f "$INST" ]; then
	    chmod a-x "$INST"
	    if [ -x /usr/bin/update-menus ]; then
		update-menus
	    fi
        fi
	;;
    purge)
	# remove the files that install-menu creates
	rm -f /etc/X11/wmanagerrc
	;;
esac

#DEBHELPER#
