#!/bin/sh
set -e

test "$1" != 'upgrade' || dpkg --compare-versions "$2" ge 0.5.2-3 || \
  test ! -x /usr/bin/update-menus || exec update-menus
test "$1" != 'remove' || test ! -x /usr/bin/update-menus || exec update-menus
test "$1" = 'purge' || exit 0
test -e /usr/share/debconf/confmodule || exit 0
. /usr/share/debconf/confmodule
db_purge
