iptables.prerm 469 Bytes
Newer Older
1
2
3
4
5
#!/bin/sh

set -e

if [ "$1" != "upgrade" ]; then
6
7
8
9
10
11
    update-alternatives --remove iptables /usr/sbin/iptables-legacy
    update-alternatives --remove ip6tables /usr/sbin/ip6tables-legacy
    update-alternatives --remove iptables /usr/sbin/iptables-nft
    update-alternatives --remove ip6tables /usr/sbin/ip6tables-nft
    update-alternatives --remove arptables /usr/sbin/arptables-nft
    update-alternatives --remove ebtables /usr/sbin/ebtables-nft
12
13
14
15
fi

#DEBHELPER#