The attached patch is better for activating swat after the package is
installed.

It really works on upgrades, contrary to the former patch I sent.

I also found that swat.postrm is probably wrong as it does *not*
remove the swat line from inetd.conf. Patch attached as well.


-- 


--- swat.postinst       2005-12-04 21:27:33.352455552 +0100
+++ swat.postinst.new   2005-12-11 10:54:20.326835544 +0100
@@ -21,6 +21,6 @@
 
 # Set up swat, turned off by default.
 update-inetd --group OTHER --add \
- '#<off># 
swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat'
+ 'swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat'
 
 #DEBHELPER#
--- swat.postrm.old     2005-12-11 11:04:07.025643768 +0100
+++ swat.postrm 2005-12-11 11:04:19.930681904 +0100
@@ -4,7 +4,7 @@
 
 case "$1" in
        purge)
-               update-inetd --remove '/usr/sbin/swat$'
+               update-inetd --remove swat
                ;;
        remove)
                ;;

Reply via email to