#!/bin/sh
[ "$1" != "upgrade" ] || exit 0
[ -z "$D" ] && PID=`pidof xinetd` && kill -HUP $PID || true
if type update-rc.d >/dev/null 2>/dev/null; then
	if [ -n "$D" ]; then
		OPT="-r $D"
	else
		OPT=""
	fi
	update-rc.d $OPT dropbear remove
fi
