File: //var/lib/dpkg/info/iptables-persistent.postrm
#!/bin/sh
set -e
case "$1" in
purge)
rm -rf /etc/iptables/rules \
/etc/iptables/rules.v4 \
/etc/iptables/rules.v6
;;
esac
# To register the drop-in's removal
if [ "$1" = "remove" ] && [ -d /run/systemd/system ]; then
systemctl --system daemon-reload >/dev/null || true
fi
# Automatically added by dh_installdeb/13.11.4ubuntu3
dpkg-maintscript-helper rm_conffile /etc/systemd/system/netfilter-persistent.service.d/iptables.conf -- "$@"
# End automatically added section
# Automatically added by dh_installdebconf/13.11.4ubuntu3
if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
# End automatically added section