projects
/
iptables-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
7bced4a
)
r2: - force removal through update-rc.d; just copy active into inactive if there...
author
Dinko Korunic
<Dinko.Korunic@CARNet.hr>
Thu, 13 Sep 2007 20:44:57 +0000
(20:44 +0000)
committer
Dinko Korunic
<Dinko.Korunic@CARNet.hr>
Thu, 13 Sep 2007 20:44:57 +0000
(20:44 +0000)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
43d25c5
..
9293ede
100755
(executable)
--- 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
# 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
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
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
fi
# dh_installdeb will replace this with shell code automatically