projects
/
iptables-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r12: - add symlink /etc/init.d/iptables -> /etc/init.d/iptables-cn
[iptables-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
81d185d
..
d4f3626
100755
(executable)
--- 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
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
# check if old default file exists and import it
if [ -e /etc/default/iptables ]; then