# 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
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