Don't force inetd_compat for upgrades.
[packages/xinetd.git] / debian / xinetd.postinst
index 5281388..ac9fa57 100644 (file)
@@ -1,5 +1,11 @@
 #!/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