r2: - force removal through update-rc.d; just copy active into inactive if there...
authorDinko Korunic <Dinko.Korunic@CARNet.hr>
Thu, 13 Sep 2007 20:44:57 +0000 (20:44 +0000)
committerDinko Korunic <Dinko.Korunic@CARNet.hr>
Thu, 13 Sep 2007 20:44:57 +0000 (20:44 +0000)
debian/postinst

index 43d25c5..9293ede 100755 (executable)
@@ -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