File: iptables-persistent.postrm

package info (click to toggle)
iptables-persistent 1.0.20
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 260 kB
  • sloc: sh: 394; makefile: 17
file content (18 lines) | stat: -rw-r--r-- 294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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

#DEBHELPER#