From f66388755bfa833968437c5a5451c1c04b809587 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Thu, 13 Sep 2007 20:44:57 +0000 Subject: [PATCH] r2: - force removal through update-rc.d; just copy active into inactive if there is no inactive file --- debian/postinst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/debian/postinst b/debian/postinst index 43d25c5..9293ede 100755 --- a/debian/postinst +++ b/debian/postinst @@ -36,7 +36,7 @@ fi # remove old iptables init script if [ -e /etc/init.d/iptables ]; then rm -f /etc/init.d/iptables - update-rc.d iptables remove + update-rc.d -f iptables remove fi # check if old default file exists and import it @@ -52,8 +52,7 @@ if [ ! -e /var/lib/iptables/active ]; then iptables-save > /var/lib/iptables/active fi if [ ! -e /var/lib/iptables/inactive ]; then - . /usr/share/doc/iptables-cn/examples/ssh-bruteforce - iptables-save > /var/lib/iptables/inactive + cp /var/lib/iptables/active /var/lib/iptables/inactive fi # dh_installdeb will replace this with shell code automatically -- 1.7.10.4