projects
/
packages
/
xinetd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't force inetd_compat for upgrades.
[packages/xinetd.git]
/
debian
/
xinetd.postinst
diff --git
a/debian/xinetd.postinst
b/debian/xinetd.postinst
index
5281388
..
ac9fa57
100644
(file)
--- a/
debian/xinetd.postinst
+++ b/
debian/xinetd.postinst
@@
-1,5
+1,11
@@
#!/bin/sh -e
#!/bin/sh -e
+if test "$1" = "configure"; then
+ if dpkg --compare-versions "$2" lt-nl 1:2.3.14-3; then
+ sed -e -i "s/INETD_COMPAT=Yes/INETD_COMPAT=No/" /etc/default/xinetd
+ fi
+fi
+
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xinetd stop
elif [ -x /etc/init.d/xinetd ]; then
if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
invoke-rc.d xinetd stop
elif [ -x /etc/init.d/xinetd ]; then