From: Dinko Korunic Date: Thu, 13 Sep 2007 20:44:57 +0000 (+0000) Subject: r2: - force removal through update-rc.d; just copy active into inactive if there... X-Git-Tag: v1.4.8~17 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=iptables-cn.git;a=commitdiff_plain;h=f66388755bfa833968437c5a5451c1c04b809587 r2: - force removal through update-rc.d; just copy active into inactive if there is no inactive file --- 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