#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
	update-rc.d cryptfs start 37 S . > /dev/null
	if dpkg --compare-versions "$2" lt "0.2.7"; then
	    update-rc.d -f cryptswap remove > /dev/null
	fi
fi

exit 0
