#!/bin/sh -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see /usr/share/doc/packaging-manual/ case "$1" in purge) rm -rf /var/lib/shorewall # check if an empy /etc/shorewall/tcstart is found on the # system and remove it (it was created in order to aviod hangs # during a major release update) test -s /etc/shorewall/tcstart || rm -f /etc/shorewall/tcstart if [ -d "/run/systemd/system" ] then deb-systemd-helper purge shorewall.service fi ;; remove|upgrade|faild-upgrade|abort-*|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 0 esac # Automatically added by dh_installinit/12.5.4 if [ "$1" = "purge" ] ; then update-rc.d shorewall remove >/dev/null fi # End automatically added section # Automatically added by dh_installdebconf/12.5.4 if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section