#!/bin/sh
# Script to fix the rc*.d entries for users with their MTA
# running out of inetd.
# Note that the default is to have correct behaviour for
# shutdown; there's no need to run this if you installed
# distributed-net >= 2.7106-4
# Written by Joe Drew <hoserhead@woot.net>. Licensed under the GPL.

echo "Deleting old rc.d entries..."
update-rc.d -f distributed-net remove
echo "Installing new rc.d entries..."
update-rc.d distributed-net start 20 2 3 4 5 . stop 17 0 1 6 . >/dev/null
echo "Done."
