From 8cbcd0fb186fbc1aee059f84760a0b9d955e5aa7 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Sun, 14 Oct 2007 21:26:52 +0000 Subject: [PATCH] r12: - add symlink /etc/init.d/iptables -> /etc/init.d/iptables-cn --- debian/links | 1 + debian/postinst | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 debian/links diff --git a/debian/links b/debian/links new file mode 100644 index 0000000..7c10417 --- /dev/null +++ b/debian/links @@ -0,0 +1 @@ +etc/init.d/iptables-cn etc/init.d/iptables diff --git a/debian/postinst b/debian/postinst index 81d185d..d4f3626 100755 --- a/debian/postinst +++ b/debian/postinst @@ -34,10 +34,7 @@ if dpkg --compare-versions "$2" lt "2:1.2.11-4"; then fi # remove old iptables init script -if [ -e /etc/init.d/iptables ]; then - rm -f /etc/init.d/iptables - update-rc.d -f iptables remove -fi +update-rc.d -f iptables remove >/dev/null 2>&1 || true # check if old default file exists and import it if [ -e /etc/default/iptables ]; then -- 1.7.10.4