#!/bin/sh
# postrm script for dinit-service-ufw.
#
# See: dh_installdeb(1).

set -e

SERVICE1="ufw"

case "$1" in
    remove|purge)
		##### GLOBAL SERVICES #####
		if [ -e /etc/dinit.d/boot.d/$SERVICE1 ]; then
			echo "Removing from boot"
			rm -rf /etc/dinit.d/boot.d/$SERVICE1
		fi
	;;
	
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
    ;;

    *)
        echo "postrm called with unknown argument '$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
