set -e
if [ -z "$D" ]; then
	killall -q -HUP dbus-daemon || true
fi
if true && type update-rc.d >/dev/null 2>/dev/null; then
	if [ -n "$D" ]; then
		OPT="-r $D"
	else
		OPT="-s"
	fi
	update-rc.d $OPT avahi-daemon defaults 21 19
fi
